mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use extport[0] for checking port
This commit is contained in:
parent
4692696e1d
commit
650d91a08f
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user