Use extport[0] for checking port

This commit is contained in:
Scott Ullrich 2005-10-05 02:11:11 +00:00
parent 4692696e1d
commit 650d91a08f

View File

@ -603,7 +603,7 @@ function filter_nat_rules_generate() {
* a ftp server then launch a helper
*/
if($target <> "") {
if($natport == "21" and !$config['system']['disableftpproxy']) {
if($extport[0] == "21" and !$config['system']['disableftpproxy']) {
$helpers = exec("ps awux | grep pftpx | grep {$target}");
if(!$helpers)
mwexec_bg("/usr/local/sbin/pftpx -c 21 -f {$target} -g 81");