summaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorErmal <eri@pfsense.org>2013-03-05 11:03:00 +0000
committerErmal <eri@pfsense.org>2013-03-05 11:03:00 +0000
commit46209e0b790d840cb53f443d0dd8d9bb7b9ab479 (patch)
tree6c4671f482f52f12432744afee9aa3f66328166b /etc
parent695aa32565f83720cbfedf6572f77207aa7b2f8d (diff)
downloadpfsense-46209e0b790d840cb53f443d0dd8d9bb7b9ab479.zip
pfsense-46209e0b790d840cb53f443d0dd8d9bb7b9ab479.tar.gz
Make sure some value is present here during boot
Diffstat (limited to 'etc')
-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