From 3581ac307236467a29c63959ff020ef40561a7d6 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Fri, 9 Oct 2009 00:15:39 +0100 Subject: componentmanager: Fix oops in pattern for matching subdomain --- core/componentmanager.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/componentmanager.lua') 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 -- cgit v1.2.3