mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Correctly pass the current wan to pftpx
This commit is contained in:
parent
f29bfab00a
commit
613bdee06a
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user