summaryrefslogtreecommitdiffstats
path: root/usr/local/www/services_captiveportal_hostname.php
diff options
context:
space:
mode:
authorErmal LUÇI <eri@pfsense.org>2014-12-24 19:14:21 +0100
committerErmal LUÇI <eri@pfsense.org>2014-12-24 19:14:21 +0100
commit82a2fd790b4ee22a051b84595713dc8633e98bdf (patch)
tree1cd6dc1bf47d39234363117b9d8a204c61998f24 /usr/local/www/services_captiveportal_hostname.php
parentb9276845369b186dd1226a20b7402b2e61b31faf (diff)
downloadpfsense-82a2fd790b4ee22a051b84595713dc8633e98bdf.zip
pfsense-82a2fd790b4ee22a051b84595713dc8633e98bdf.tar.gz
Correct even other areas of CP using pfSense_ipfw_getTablestats function.
Diffstat (limited to 'usr/local/www/services_captiveportal_hostname.php')
-rw-r--r--usr/local/www/services_captiveportal_hostname.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/www/services_captiveportal_hostname.php b/usr/local/www/services_captiveportal_hostname.php
index 964c2ba..8918a25 100644
--- a/usr/local/www/services_captiveportal_hostname.php
+++ b/usr/local/www/services_captiveportal_hostname.php
@@ -79,7 +79,7 @@ if ($_GET['act'] == "del" && !empty($cpzone) && isset($cpzoneid)) {
$ip = gethostbyname($ipent['hostname']);
$sn = (is_ipaddrv6($ip)) ? 128 : 32;
if(is_ipaddr($ip)) {
- $ipfw = pfSense_ipfw_getTablestats($cpzoneid, 3, $ip);
+ $ipfw = pfSense_ipfw_getTablestats($cpzoneid, IP_FW_TABLE_XLISTENTRY, 3, $ip);
if (is_array($ipfw)) {
captiveportal_free_dn_ruleno($ipfw['dnpipe']);
pfSense_pipe_action("pipe delete {$ipfw['dnpipe']}");
OpenPOWER on IntegriCloud