mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Use lowercase interface name
This commit is contained in:
parent
937200e191
commit
328637fe8a
@ -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.
|
||||
|
||||
@ -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'];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user