From 64cc8755ca79a6e15234babdb887432ee8572564 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Fri, 28 Apr 2006 17:49:46 +0000 Subject: When PPTP server is turned off, remove any custom rules associated with it. --- usr/local/www/vpn_pptp.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'usr/local/www/vpn_pptp.php') diff --git a/usr/local/www/vpn_pptp.php b/usr/local/www/vpn_pptp.php index 26449e7..b9659e5 100755 --- a/usr/local/www/vpn_pptp.php +++ b/usr/local/www/vpn_pptp.php @@ -96,6 +96,15 @@ if ($_POST) { if (($_POST['redir'] && !is_ipaddr($_POST['redir']))) { $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