Restore accidentally removed code. Spoted-by: bcyrill@github

This commit is contained in:
Ermal 2013-01-27 15:33:21 +00:00
parent 9d33c8571f
commit 965ce4c680

View File

@ -73,6 +73,7 @@ if ($_GET['act'] == "del" && !empty($cpzone)) {
$ipent['ip'] .= "/{$ipent['sn']}";
$ip = gethostbyname($ipent['ip']);
if(is_ipaddr($ip)) {
$ipfw = pfSense_ipfw_getTablestats($cpzone, 3, $ip);
if (is_array($ipfw)) {
captiveportal_free_dn_ruleno($ipfw['dnpipe']);
pfSense_pipe_action("pipe delete {$ipfw['dnpipe']}");