X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=prosody;h=e4e5bc4789aede119051e0e53ee3687c2b4e1a26;hb=401ac420a8da38f115391a8c1067c715895dca63;hp=c3dd979a31654ae8578791e46946aa536d744f76;hpb=a807cba7e5bdaa3623a44fd0c499a9072b0bd629;p=prosody.git diff --git a/prosody b/prosody index c3dd979a..e4e5bc47 100755 --- a/prosody +++ b/prosody @@ -192,14 +192,15 @@ function init_global_state() log("error", "core."..option.." is not a table"); else for _, port in ipairs(ports) do + port = tonumber(port); if type(port) ~= "number" then log("error", "Non-numeric "..option.."_ports: "..tostring(port)); else cl.start(listener, { ssl = conntype ~= "tcp" and global_ssl_ctx, port = port, - interface = config.get("*", "core", option.."_interface") - or cl.get(listener).default_interface + interface = (option and config.get("*", "core", option.."_interface")) + or cl.get(listener).default_interface or config.get("*", "core", "interface"), type = conntype });