Parsing any custom routes for any custom interfaces was broken so that arbitrary routes were imported when not all interfaces were in use.
Signed-off-by: Michael Tremer michael.tremer@ipfire.org --- html/cgi-bin/connections.cgi | 3 +++ 1 file changed, 3 insertions(+)
diff --git a/html/cgi-bin/connections.cgi b/html/cgi-bin/connections.cgi index af375effe..705118576 100644 --- a/html/cgi-bin/connections.cgi +++ b/html/cgi-bin/connections.cgi @@ -89,6 +89,9 @@ my @routes = &General::system_output("ip", "route", "show");
# Find all routes foreach my $intf (keys %interfaces) { + # Skip empty interfaces + next if ($intf eq ""); + foreach my $route (grep(/dev ${intf}/, @routes)) { if ($route =~ m/^(\d+.\d+.\d+.\d+/\d+)/) { $networks{$1} = $interfaces{$intf};