Project

General

Profile

« Previous | Next » 

Revision ef59af27

Added by Darren Embry over 13 years ago

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

View differences:

etc/inc/system.inc
1044 1044
EOD;
1045 1045

  
1046 1046
	if($captive_portal == true) {
1047
		$lighty_config .= "server.bind	= \"127.0.0.1\"\n";
1047
		$lighty_config .= "server.bind  = \"0.0.0.0\"\n";
1048 1048
		$lighty_config .= "server.port  = {$lighty_port}\n";
1049
		$lighty_config .= "\$SERVER[\"socket\"]  == \"127.0.0.1:{$lighty_port}\" { }\n";
1049
		$lighty_config .= "\$SERVER[\"socket\"]  == \"0.0.0.0:{$lighty_port}\" { }\n";
1050 1050
		$lighty_config .= "\$SERVER[\"socket\"]  == \"[::1]:{$lighty_port}\" { \n";
1051 1051
		if($cert <> "" and $key <> "") {
1052 1052
			$lighty_config .= "\n";

Also available in: Unified diff