don't delete PPTP rules when disabling PPTP. Enable/disable happens too much given the issues with PPTP outbound when server is enabled.

This commit is contained in:
Chris Buechler 2009-07-16 21:42:10 -04:00
parent dc1019197e
commit a67a0922b4

View File

@ -119,13 +119,6 @@ if ($_POST) {
$input_errors[] = "A valid target address must be specified.";
}
} else {
/* turning pptp off, lets dump any custom rules */
$rules = &$config['filter']['rule'];
for($x=0; $x<count($rules); $x++) {
if($rules[$x]['interface'] == "pptp") {
unset($rules[$x]);
}
}
unset($config['pptpd']['mode']);
}