mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
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:
parent
bef75b4c9f
commit
ef59af2728
@ -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";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user