diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2005-06-13 23:12:39 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2005-06-13 23:12:39 +0000 |
commit | 613bdee06aaa3860c9ed17e3760e2b36b69e7f09 (patch) | |
tree | e591588e2db86afafecf7c401220e42b66821b25 /etc | |
parent | f29bfab00a3ec632a2924cba14a9333a9da543dd (diff) | |
download | pfsense-613bdee06aaa3860c9ed17e3760e2b36b69e7f09.zip pfsense-613bdee06aaa3860c9ed17e3760e2b36b69e7f09.tar.gz |
Correctly pass the current wan to pftpx
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.inc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/inc/config.inc b/etc/inc/config.inc index 8cdb854..a4cc50e 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1015,14 +1015,15 @@ EOD; } function system_start_ftp_helpers() { + require_once("interfaces.inc"); global $config, $g; if($config['system']['disableftpproxy'] <> "") return; $wanip = get_current_wan_address(); mwexec("/usr/bin/killall pftpx"); if($wanip <> "" and $wanip <> "0.0.0.0") - $pip = "-p {$ip}"; - mwexec("/usr/local/sbin/pftpx -g 8021 {$pip}"); + $pip = "-p {$wanip}"; + mwexec("/usr/local/sbin/pftpx -g 8021 {$wanip}"); } function cleanup_backupcache($revisions = 30) { |