From 4eb3ac52b07533c26a1ebf3e496d25669629a038 Mon Sep 17 00:00:00 2001 From: Renato Botelho Date: Tue, 4 Jun 2013 08:24:52 -0300 Subject: Also consider 0.0.0.0/0 here since it fails on is_subnet() but is a valid/special config. Fixes #3016 --- etc/inc/vpn.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/vpn.inc b/etc/inc/vpn.inc index ac6a37e..3edb027 100644 --- a/etc/inc/vpn.inc +++ b/etc/inc/vpn.inc @@ -871,7 +871,7 @@ EOD; if(($ph2ent['mode'] == "tunnel") or ($ph2ent['mode'] == 'tunnel6')) { // Error will be logged above, no need to log this twice. #2201 - if (!is_subnet($localid)) + if (!is_subnet($localid) && ($localid != "0.0.0.0/0"))) continue; if($ph2ent['mode'] == "tunnel6") -- cgit v1.1