aboutsummaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-10-09 00:15:39 +0100
committerMatthew Wild <mwild1@gmail.com>2009-10-09 00:15:39 +0100
commit3581ac307236467a29c63959ff020ef40561a7d6 (patch)
treeecf69a1497ab357e8cea7316a414cdbb997f547d /core
parenteaa2143f8b42b4770111bc54811684d2410ea89e (diff)
downloadprosody-3581ac307236467a29c63959ff020ef40561a7d6.tar.gz
prosody-3581ac307236467a29c63959ff020ef40561a7d6.zip
componentmanager: Fix oops in pattern for matching subdomain
Diffstat (limited to 'core')
-rw-r--r--core/componentmanager.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/componentmanager.lua b/core/componentmanager.lua
index e4799790..c6ca4553 100644
--- a/core/componentmanager.lua
+++ b/core/componentmanager.lua
@@ -75,7 +75,7 @@ function create_component(host, component, events)
-- We need to find SSL context to use...
-- Discussion in prosody@ concluded that
-- 1 level back is usually enough by default
- local base_host = host:gsub("^[^%.]+", "");
+ local base_host = host:gsub("^[^%.]+%.", "");
if hosts[base_host] then
ssl_ctx = hosts[base_host].ssl_ctx;
end