aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2012-03-15 16:29:30 +0000
committerMatthew Wild <mwild1@gmail.com>2012-03-15 16:29:30 +0000
commitcd9f57bc12a5c99c86465c7ee209851081593161 (patch)
tree45a5e26401ccd2e95749eb8b663dd11c696644cd /core
parentdf424cfe1207f0f95b0f155a1893efa697865c3d (diff)
downloadprosody-cd9f57bc12a5c99c86465c7ee209851081593161.tar.gz
prosody-cd9f57bc12a5c99c86465c7ee209851081593161.zip
portmanager: Support 'default_port' in service options
Diffstat (limited to 'core')
-rw-r--r--core/portmanager.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/portmanager.lua b/core/portmanager.lua
index 914a8e2f..c5bb936a 100644
--- a/core/portmanager.lua
+++ b/core/portmanager.lua
@@ -86,7 +86,9 @@ function activate_service(service_name)
local bind_ports = set.new(config.get("*", config_prefix.."ports")
or service_info.default_ports
- or {listener.default_port}); -- COMPAT w/pre-0.9
+ or {service_info.default_port
+ or listener.default_port -- COMPAT w/pre-0.9
+ });
local mode = listener.default_mode or "*a";
local ssl;