Revision 6e65863d
Added by Scott Ullrich almost 20 years ago
etc/inc/filter.inc | ||
---|---|---|
357 | 357 |
* a ftp server then launch a helper |
358 | 358 |
*/ |
359 | 359 |
if($dst <> "") { |
360 |
if($natport == "21" and $config['system']['disableftpproxy'] <> "") {
|
|
361 |
$helpers = exec("ps awux | grep pftpx | grep {$dst} | cut -d\" \" -f5");
|
|
362 |
mwexec("/bin/kill {$helpers}");
|
|
363 |
mwexec_bg("/usr/local/sbin/pftpx -c 81 -f {$dst} -g 81"); |
|
360 |
if($natport == "21" and !$config['system']['disableftpproxy']) {
|
|
361 |
$helpers = exec("ps awux | grep pftpx | grep {$dst}"); |
|
362 |
if(!$helpers)
|
|
363 |
mwexec_bg("/usr/local/sbin/pftpx -c 81 -f {$dst} -g 81");
|
|
364 | 364 |
} |
365 | 365 |
} |
366 | 366 |
|
Also available in: Unified diff
Launch FTP helper correctly for NAT redirected ftp servers