From: Stefan Schantl Date: Wed, 9 Nov 2011 20:09:09 +0000 (+0100) Subject: vpnmain.cgi: Allow %any as remote host/IP. X-Git-Tag: v2.9-core54~13^2~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3a5427f542824b7e6c15ef90fe995f54c63f16fb;p=people%2Fms%2Fipfire-2.x.git vpnmain.cgi: Allow %any as remote host/IP. http://forum.ipfire.org/index.php?topic=5458.0 --- diff --git a/html/cgi-bin/vpnmain.cgi b/html/cgi-bin/vpnmain.cgi index e1a8200945..eea2c01ace 100644 --- a/html/cgi-bin/vpnmain.cgi +++ b/html/cgi-bin/vpnmain.cgi @@ -1351,7 +1351,7 @@ END } if ($cgiparams{'REMOTE'}) { - if (! &General::validip($cgiparams{'REMOTE'})) { + if (($cgiparams{'REMOTE'} ne '%any') && (! &General::validip($cgiparams{'REMOTE'}))) { if (! &General::validfqdn ($cgiparams{'REMOTE'})) { $errormessage = $Lang::tr{'invalid input for remote host/ip'}; goto VPNCONF_ERROR;