vpnmain.cgi: Allow %any as remote host/IP.
authorStefan Schantl <stefan.schantl@ipfire.org>
Wed, 9 Nov 2011 20:09:09 +0000 (21:09 +0100)
committerStefan Schantl <stefan.schantl@ipfire.org>
Wed, 9 Nov 2011 20:13:25 +0000 (21:13 +0100)
http://forum.ipfire.org/index.php?topic=5458.0

html/cgi-bin/vpnmain.cgi

index e1a8200..eea2c01 100644 (file)
@@ -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;