From 1c2ea1480d6b5c1d7968fd04093dcfc254510ad1 Mon Sep 17 00:00:00 2001 From: Christopher Liljenstolpe Date: Tue, 4 Mar 2008 18:46:27 -0800 Subject: Fix 2954: IPv6 addresses that have a-f in the address fail. --- scripts/vyatta-interfaces.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/vyatta-interfaces.pl b/scripts/vyatta-interfaces.pl index fc10c4d..482faa8 100644 --- a/scripts/vyatta-interfaces.pl +++ b/scripts/vyatta-interfaces.pl @@ -358,7 +358,7 @@ sub is_valid_addr { } my ($addr, $net); - if ($addr_net =~ m/^([0-9\.\:]+)\/(\d+)$/) { + if ($addr_net =~ m/^([0-9a-fA-F\.\:]+)\/(\d+)$/) { $addr = $1; $net = $2; } else { -- cgit v1.2.3