summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/policy/vyatta-policy.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/policy/vyatta-policy.pl b/scripts/policy/vyatta-policy.pl
index 928c69f6..ae04470f 100755
--- a/scripts/policy/vyatta-policy.pl
+++ b/scripts/policy/vyatta-policy.pl
@@ -25,7 +25,7 @@ sub check_peer_syntax() {
$_ = $peer;
if (/^local$/) { exit 0; }
- if (! isIpAddress("$peer")) { exit 0; }
+ if (isIpAddress("$peer")) { exit 0; }
exit 1;
}