liquid_feedback_frontend
changeset 1199:6b1f01c31092
Updated host config for Moonbridge 1.0
author | bsw |
---|---|
date | Tue Jun 23 19:48:56 2015 +0200 (2015-06-23) |
parents | 61b81906b505 |
children | 8e36f08eaac6 |
files | app/main/_prefork/10_init.lua |
line diff
1.1 --- a/app/main/_prefork/10_init.lua Sun Jun 21 02:55:34 2015 +0200 1.2 +++ b/app/main/_prefork/10_init.lua Tue Jun 23 19:48:56 2015 +0200 1.3 @@ -53,10 +53,12 @@ 1.4 } 1.5 1.6 if config.ipv6 then 1.7 - listen_options[#listen_options+1] = { proto = "tcp6", port = config.port, localhost = config.localhost } 1.8 + local host = config.localhost and "::1" or "::" 1.9 + listen_options[#listen_options+1] = { proto = "tcp", host = host, port = config.port } 1.10 end 1.11 if config.ipv6 ~= "only" then 1.12 - listen_options[#listen_options+1] = { proto = "tcp4", port = config.port, localhost = config.localhost } 1.13 + local host = config.localhost and "127.0.0.1" or "::" 1.14 + listen_options[#listen_options+1] = { proto = "tcp", host = host, port = config.port } 1.15 end 1.16 1.17 listen(listen_options)