Use lowercase interface name

This commit is contained in:
Scott Ullrich 2005-11-22 16:59:55 +00:00
parent 937200e191
commit 328637fe8a
2 changed files with 2 additions and 2 deletions

View File

@ -1222,7 +1222,7 @@ function system_start_ftp_helpers() {
* here by not including -c {$port} -g 8021 first.
*/
$port = 8021 + $interface_counter;
if(isset($config['interfaces'][$ifname]['disableftpproxy'])) {
if(isset($config['interfaces'][strtolower($ifname)]['disableftpproxy'])) {
/* item is disabled. lets ++ the interface counter and
* keep processing interfaces. kill pftpx if already
* running for this instance.

View File

@ -632,7 +632,7 @@ function filter_nat_rules_generate() {
* a ftp server then launch a helper
*/
if($target <> "") {
if($extport[0] == "21" and !isset($config['interfaces'][$rule['interface']]['disableftpproxy'])) {
if($extport[0] == "21" and !isset($config['interfaces'][strtolower($rule['interface'])]['disableftpproxy'])) {
$helpers = exec("/bin/ps awux | grep {$target} | grep -v grep");
if(!$helpers) {
$external_address = $rule['external-address'];