mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-27 03:07:43 +02:00
vpnmain: disabled address check.
this temporary fixes bug #10294 until the check was fixed to check the complete source and dest net.
This commit is contained in:
18
html/cgi-bin/vpnmain.cgi
Executable file → Normal file
18
html/cgi-bin/vpnmain.cgi
Executable file → Normal file
@@ -2,7 +2,7 @@
|
||||
###############################################################################
|
||||
# #
|
||||
# IPFire.org - A linux based firewall #
|
||||
# Copyright (C) 2007-2011 IPFire Team info@ipfire.org #
|
||||
# Copyright (C) 2007-2013 IPFire Team info@ipfire.org #
|
||||
# #
|
||||
# This program is free software: you can redistribute it and/or modify #
|
||||
# it under the terms of the GNU General Public License as published by #
|
||||
@@ -1367,14 +1367,14 @@ END
|
||||
goto VPNCONF_ERROR;
|
||||
}
|
||||
|
||||
|
||||
if ($cgiparams{'TYPE'} eq 'net'){
|
||||
$errormessage=&General::checksubnets($cgiparams{'NAME'},$cgiparams{'REMOTE_SUBNET'});
|
||||
if ($errormessage ne ''){
|
||||
goto VPNCONF_ERROR;
|
||||
}
|
||||
|
||||
}
|
||||
#temporary disabled (BUG 10294)
|
||||
# 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