diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-07 17:27:09 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-07 17:27:09 +0000 |
commit | 602d946642e8d7be1adb78ceed75c1b8513eed42 (patch) | |
tree | d8e54a58997a0e22aa17b19bc383e7f2a93e894b /etc | |
parent | 58cd1e0386b059c0ef6e0c61da3161d3f043f30b (diff) | |
download | pfsense-602d946642e8d7be1adb78ceed75c1b8513eed42.zip pfsense-602d946642e8d7be1adb78ceed75c1b8513eed42.tar.gz |
Relaunch pftpx on dhclient changes if necessary
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.inc | 1 | ||||
-rwxr-xr-x | etc/rc.newwanip | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 8025c0d..0c3c892 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1019,6 +1019,7 @@ function system_start_ftp_helpers() { if($config['system']['disableftpproxy'] <> "") return; $wanif = get_real_wan_interface(); $ip = find_interface_ip($wanif); + mwexec("/sbin/killall pftpx"); mwexec("/usr/local/sbin/pftpx -g 8021 -p {$ip}"); } diff --git a/etc/rc.newwanip b/etc/rc.newwanip index 5b51473..f1cdda3 100755 --- a/etc/rc.newwanip +++ b/etc/rc.newwanip @@ -56,6 +56,9 @@ return 0; /* nothing to do */ } + /* relaunch pftpx */ + system_start_ftp_helpers(); + /* resync ipfilter */ filter_resync(); |