mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-21 16:32:59 +02:00
Merge remote-tracking branch 'amarx/ipsec' into next
This commit is contained in:
8
html/cgi-bin/vpnmain.cgi
Normal file → Executable file
8
html/cgi-bin/vpnmain.cgi
Normal file → Executable file
@@ -1415,6 +1415,14 @@ END
|
||||
goto VPNCONF_ERROR;
|
||||
}
|
||||
|
||||
|
||||
if ($cgiparams{'TYPE'} eq 'net'){
|
||||
$errormessage=&General::checksubnets($cgiparams{'NAME'},$cgiparams{'REMOTE_SUBNET'});
|
||||
if ($errormessage ne ''){
|
||||
goto VPNCONF_ERROR;
|
||||
}
|
||||
|
||||
}
|
||||
if ($cgiparams{'AUTH'} eq 'psk') {
|
||||
if (! length($cgiparams{'PSK'}) ) {
|
||||
$errormessage = $Lang::tr{'pre-shared key is too short'};
|
||||
|
||||
Reference in New Issue
Block a user