]> git.ipfire.org Git - ipfire-2.x.git/commitdiff
openvpn: Fix deletion of static routes.
authorNico Prenzel <nico.prenzel@pn-systeme.de>
Thu, 24 May 2012 16:18:22 +0000 (18:18 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 24 May 2012 16:18:22 +0000 (18:18 +0200)
html/cgi-bin/ovpnmain.cgi

index 4bfb6aa2c6c970ed62d43ef48c6d3b2b01c1dcb0..0c4502da6b5554eec6d88c33714f1b6818aff8a4 100644 (file)
@@ -572,6 +572,10 @@ if ($cgiparams{'ACTION'} eq $Lang::tr{'save-adv-options'}) {
        }
        &write_routepushfile;
        undef $vpnsettings{'ROUTES_PUSH'};
+    }
+       else {
+       undef $vpnsettings{'ROUTES_PUSH'};
+       &write_routepushfile;
     }
     if ((length($cgiparams{'MAX_CLIENTS'}) == 0) || (($cgiparams{'MAX_CLIENTS'}) < 1 ) || (($cgiparams{'MAX_CLIENTS'}) > 255 )) {
         $errormessage = $Lang::tr{'invalid input for max clients'};