]> git.ipfire.org Git - people/teissler/ipfire-2.x.git/commitdiff
Merge remote-tracking branch 'amarx/ipsec' into next
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Nov 2012 21:12:50 +0000 (22:12 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 28 Nov 2012 21:12:50 +0000 (22:12 +0100)
html/cgi-bin/vpnmain.cgi [changed mode: 0644->0755]

old mode 100644 (file)
new mode 100755 (executable)
index 0fb7c93..24aeb6d
@@ -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'};