Only workaround RFC959 on optional interfaces if a gateway is set

This commit is contained in:
Scott Ullrich 2005-06-28 17:30:07 +00:00
parent a27baeecf0
commit 4fd77a143a

View File

@ -1521,7 +1521,8 @@ EOD;
$optcfg = array();
generate_optcfg_array($optcfg);
foreach($optcfg as $oc) {
$ipfrules .= "pass in quick on {$oc['if']} inet proto tcp from any to ({$oc['if']}) port > 49000 user proxy flags S/SA keep state label \"FTP PROXY: RFC959 violation workaround\" \n";
if($oc['gateway'] <> "")
$ipfrules .= "pass in quick on {$oc['if']} inet proto tcp from any to ({$oc['if']}) port > 49000 user proxy flags S/SA keep state label \"FTP PROXY: RFC959 violation workaround\" \n";
}
}
}