From 257863517fdcb6e29aefa1ac17fbaa7d37bd1725 Mon Sep 17 00:00:00 2001 From: Stig Thormodsrud Date: Mon, 2 Mar 2009 15:34:30 -0800 Subject: When an IP address is configured on a loopback, getInterfacesIPadresses('all') doesn't include them. Include loopback addresses. --- lib/Vyatta/Misc.pm | 1 - 1 file changed, 1 deletion(-) (limited to 'lib/Vyatta') diff --git a/lib/Vyatta/Misc.pm b/lib/Vyatta/Misc.pm index 57c2ac2..0c00b7e 100755 --- a/lib/Vyatta/Misc.pm +++ b/lib/Vyatta/Misc.pm @@ -148,7 +148,6 @@ sub getInterfacesIPadresses { foreach my $name (getInterfaces()) { my $intf = new Vyatta::Interface($name); next unless $intf; - next if $intf->loopback(); if (defined $type_func) { next unless $intf->$type_func(); } -- cgit v1.2.3