firewall: Use correct interface for RED

This commit is contained in:
Michael Tremer
2014-10-07 14:54:12 +02:00
parent 474daba689
commit a21f2f6a76

View File

@@ -238,8 +238,8 @@ sub get_interface
if($net eq "$netsettings{'BLUE_NETADDRESS'}/$netsettings{'BLUE_NETMASK'}"){
return "$netsettings{'BLUE_DEV'}";
}
if($net eq "0.0.0.0/0"){
return "$netsettings{'RED_DEV'}";
if($net eq "0.0.0.0/0") {
return &get_external_interface();
}
return "";
}