diff options
-rwxr-xr-x | scripts/vyatta-interfaces.pl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index 25fefc9..c4e5c4e 100755 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -90,8 +90,8 @@ exit 0; sub is_ip_configured { my ($intf, $ip) = @_; - my @found = grep $ip, Vyatta::Misc::getIP($intf); - return ($#found > 0); + my $found = grep { $_ eq $ip } Vyatta::Misc::getIP($intf); + return ($found > 0); } sub is_ip_duplicate { |