mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-19 23:43:00 +02:00
vpnmain.cgi: Allow %any as remote host/IP.
http://forum.ipfire.org/index.php?topic=5458.0
This commit is contained in:
committed by
Arne Fitzenreiter
parent
44b2f168bb
commit
528cb9a701
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user