From: Stefan Schantl Date: Wed, 9 Nov 2011 20:09:09 +0000 (+0100) Subject: vpnmain.cgi: Allow %any as remote host/IP. X-Git-Url: http://git.ipfire.org/?p=people%2Fteissler%2Fipfire-2.x.git;a=commitdiff_plain;h=3a5427f542824b7e6c15ef90fe995f54c63f16fb 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 e1a820094..eea2c01ac 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;