summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2005-06-07 17:27:09 +0000
committerScott Ullrich <sullrich@pfsense.org>2005-06-07 17:27:09 +0000
commit602d946642e8d7be1adb78ceed75c1b8513eed42 (patch)
treed8e54a58997a0e22aa17b19bc383e7f2a93e894b /etc
parent58cd1e0386b059c0ef6e0c61da3161d3f043f30b (diff)
downloadpfsense-602d946642e8d7be1adb78ceed75c1b8513eed42.zip
pfsense-602d946642e8d7be1adb78ceed75c1b8513eed42.tar.gz
Relaunch pftpx on dhclient changes if necessary
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/config.inc1
-rwxr-xr-xetc/rc.newwanip3
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();
OpenPOWER on IntegriCloud