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
This commit is contained in:
Darren Embry 2012-03-22 10:48:57 -04:00
parent bef75b4c9f
commit ef59af2728

View File

@ -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";