summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
Diffstat (limited to 'etc')
-rw-r--r--etc/inc/vpn.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc
index 8771ab9..b9753ee 100644
--- a/etc/inc/vpn.inc
+++ b/etc/inc/vpn.inc
@@ -1572,7 +1572,7 @@ function reload_tunnel_spd_policy($phase1, $phase2, $old_phase1, $old_phase2) {
return false;
}
- if((!ip_addr($oldep)) || (! is_ipaddr($ep)) || (! is_ipaddr($rgip)) || (! is_ipaddr($old_gw))) {
+ if((!is_ipaddr($oldep)) || (! is_ipaddr($ep)) || (! is_ipaddr($rgip)) || (! is_ipaddr($old_gw))) {
log_error("IPSEC: ERROR: One of the local or remote endpoints did not resolve to a IP address, aborting");
}
OpenPOWER on IntegriCloud