# HG changeset patch # User bsw # Date 1435081736 -7200 # Node ID 6b1f01c31092f111379a8357bd5c6aa7f1aeffd7 # Parent 61b81906b505f526e156bbb8c83d922b51e77cbc Updated host config for Moonbridge 1.0 diff -r 61b81906b505 -r 6b1f01c31092 app/main/_prefork/10_init.lua --- a/app/main/_prefork/10_init.lua Sun Jun 21 02:55:34 2015 +0200 +++ b/app/main/_prefork/10_init.lua Tue Jun 23 19:48:56 2015 +0200 @@ -53,10 +53,12 @@ } if config.ipv6 then - listen_options[#listen_options+1] = { proto = "tcp6", port = config.port, localhost = config.localhost } + local host = config.localhost and "::1" or "::" + listen_options[#listen_options+1] = { proto = "tcp", host = host, port = config.port } end if config.ipv6 ~= "only" then - listen_options[#listen_options+1] = { proto = "tcp4", port = config.port, localhost = config.localhost } + local host = config.localhost and "127.0.0.1" or "::" + listen_options[#listen_options+1] = { proto = "tcp", host = host, port = config.port } end listen(listen_options)