Merge remote-tracking branch 'amarx/ipsec' into next

This commit is contained in:
Michael Tremer
2012-11-28 22:12:50 +01:00

8
html/cgi-bin/vpnmain.cgi Normal file → Executable file
View 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'};