summaryrefslogtreecommitdiff
path: root/scripts/policy/vyatta-policy.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/policy/vyatta-policy.pl')
-rwxr-xr-xscripts/policy/vyatta-policy.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/policy/vyatta-policy.pl b/scripts/policy/vyatta-policy.pl
index f098b48a..b2acab8f 100755
--- a/scripts/policy/vyatta-policy.pl
+++ b/scripts/policy/vyatta-policy.pl
@@ -45,6 +45,7 @@ sub check_peer_syntax {
$_ = $peer;
if (/^local$/) { exit 0; }
if ( isIpAddress("$peer") ) { exit 0; }
+ if ( $peer =~ /^[0-9a-fA-F:]+$/) { exit 0; }
exit 1;
}