summaryrefslogtreecommitdiff
path: root/scripts/policy
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-08-30 18:11:18 +0200
committerGitHub <noreply@github.com>2023-08-30 18:11:18 +0200
commit703ae7798802da3c711a238e40439d4f7ebcb5b7 (patch)
tree69e3bfc6f1e9d1eaea613f2c8e64c7814fc09f9c /scripts/policy
parent2fa0f52e45f4491b760cf03e72c871020492dfb7 (diff)
parent6b4acfc2c0ab2a45be0f50050999a8eaed1aea62 (diff)
downloadvyatta-cfg-quagga-703ae7798802da3c711a238e40439d4f7ebcb5b7.tar.gz
vyatta-cfg-quagga-703ae7798802da3c711a238e40439d4f7ebcb5b7.zip
Merge pull request #101 from sever-sever/T4475-eq
T4475: route-map allow IPv6 address for match peer option
Diffstat (limited to 'scripts/policy')
-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;
}