diff options
Diffstat (limited to 'lib/network/tools.pm')
-rw-r--r-- | lib/network/tools.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/network/tools.pm b/lib/network/tools.pm index a65fd7c..0db6b26 100644 --- a/lib/network/tools.pm +++ b/lib/network/tools.pm @@ -160,6 +160,7 @@ sub get_default_gateway_interface { sub get_interface_status { my ($intf) = @_; + $intf =~ s/:\d+$//; my $routes = get_routes(); return $routes->{$intf}{network}, $routes->{$intf}{network} eq '0.0.0.0' && $routes->{$intf}{gateway}; } |