summaryrefslogtreecommitdiffstats
path: root/etc/inc/system.inc
diff options
context:
space:
mode:
authorDarren Embry <dse@webonastick.com>2012-03-22 10:48:57 -0400
committerDarren Embry <dse@webonastick.com>2012-03-22 10:48:57 -0400
commitef59af2728f4baffff2a42088304daa138cbdb47 (patch)
tree3f8a22cc847dfdaa73d550f397f4ed84aa59b273 /etc/inc/system.inc
parentbef75b4c9f43c024db19907bf5f6167dd8f82cb8 (diff)
downloadpfsense-ef59af2728f4baffff2a42088304daa138cbdb47.zip
pfsense-ef59af2728f4baffff2a42088304daa138cbdb47.tar.gz
fix for: Captive Portal cannot work on master branch
reverting to listening on 0.0.0.0 seems to work just fine mostly fixes #1700 . http://redmine.pfsense.org/issues/1700
Diffstat (limited to 'etc/inc/system.inc')
-rw-r--r--etc/inc/system.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc
index 7790d38..5af42af 100644
--- a/etc/inc/system.inc
+++ b/etc/inc/system.inc
@@ -1044,9 +1044,9 @@ url.access-deny = ( "~", ".inc" )
EOD;
if($captive_portal == true) {
- $lighty_config .= "server.bind = \"127.0.0.1\"\n";
+ $lighty_config .= "server.bind = \"0.0.0.0\"\n";
$lighty_config .= "server.port = {$lighty_port}\n";
- $lighty_config .= "\$SERVER[\"socket\"] == \"127.0.0.1:{$lighty_port}\" { }\n";
+ $lighty_config .= "\$SERVER[\"socket\"] == \"0.0.0.0:{$lighty_port}\" { }\n";
$lighty_config .= "\$SERVER[\"socket\"] == \"[::1]:{$lighty_port}\" { \n";
if($cert <> "" and $key <> "") {
$lighty_config .= "\n";
OpenPOWER on IntegriCloud