Changeset

1940:85d51cea2c4c

componentmanager: Fix oops in pattern for matching subdomain
author Matthew Wild <mwild1@gmail.com>
date Fri, 09 Oct 2009 00:15:39 +0100
parents 1939:2c295826a96d
children 1941:3f765fde5149
files core/componentmanager.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/core/componentmanager.lua	Thu Oct 08 23:51:55 2009 +0100
+++ b/core/componentmanager.lua	Fri Oct 09 00:15:39 2009 +0100
@@ -75,7 +75,7 @@
 		-- 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