openvpn: Fix deletion of static routes.

This commit is contained in:
Nico Prenzel
2012-05-24 18:18:22 +02:00
committed by Michael Tremer
parent aa7afd463d
commit 8e148dc343

View 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'};