diff options
author | Ermal <eri@pfsense.org> | 2010-11-03 13:25:54 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2010-11-03 13:25:54 +0000 |
commit | 9cb94dd46bf45155d55585e0f8c3e432705d8ca2 (patch) | |
tree | 297616ba01a3996ae2461fc495dbdb031451e7ef /etc | |
parent | 729931965e68a3c8ab1de307446410f6810c4433 (diff) | |
download | pfsense-9cb94dd46bf45155d55585e0f8c3e432705d8ca2.zip pfsense-9cb94dd46bf45155d55585e0f8c3e432705d8ca2.tar.gz |
Ticket #980. Bring CP widget up to date. Also bind lighty for CP to 127.0.0.1 it should not be accessible otherwise.
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/system.inc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/inc/system.inc b/etc/inc/system.inc index 23e9b64..3d5f807 100644 --- a/etc/inc/system.inc +++ b/etc/inc/system.inc @@ -997,6 +997,14 @@ url.access-deny = ( "~", ".inc" ) ######### Options that are good to be but not neccesary to be changed ####### ## bind to port (default: 80) + +EOD; + + if($captive_portal == true) + $lighty_config .= "server.bind = \"127.0.0.1\"\n"; + + $lighty_config .= <<<EOD + server.port = {$lighty_port} ## error-handler for status 404 |