summaryrefslogtreecommitdiffstats
path: root/etc/inc/captiveportal.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/captiveportal.inc')
-rw-r--r--etc/inc/captiveportal.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/etc/inc/captiveportal.inc b/etc/inc/captiveportal.inc
index f9eb2d2..f876a5a 100644
--- a/etc/inc/captiveportal.inc
+++ b/etc/inc/captiveportal.inc
@@ -992,7 +992,8 @@ function captiveportal_allowedip_configure_entry($ipent, $ishostname = false) {
$ipaddress = gethostbyname($ipent['hostname']);
if (!is_ipaddr($ipaddress))
return;
- }
+ } else
+ $ipaddress = "";
} else
$ipaddress = $ipent['ip'];
OpenPOWER on IntegriCloud