Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.

Commit

Permalink
Fix routes for allowed-ips being checked when route-allowed-ips is false
Browse files Browse the repository at this point in the history
  • Loading branch information
tssva authored and Lochnair committed May 4, 2018
1 parent 32de758 commit b70de49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion generic/opt/vyatta/sbin/vyatta-check-allowed-ips.pl
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ sub check_peer {
}

$config->setLevel("interfaces wireguard ${intf}");
if ($config->returnValue("route-allowed-ips") == "true") {
if ($config->returnValue("route-allowed-ips") eq "true") {
my $conflict = check_routes(@allowed_ips);
if ($conflict) {
die "Error: Allowed IP " . $conflict . " on interface ${intf} peer ${peer} conflicts with an existing route. route-allowed-ips cannot be enabled.\n";
Expand Down

0 comments on commit b70de49

Please sign in to comment.