core/componentmanager.lua

changeset 1940
85d51cea2c4c
parent 1939
2c295826a96d
child 1941
3f765fde5149
equal deleted inserted replaced
1939:2c295826a96d 1940:85d51cea2c4c
73 local ssl_ctx; 73 local ssl_ctx;
74 if host then 74 if host then
75 -- We need to find SSL context to use... 75 -- We need to find SSL context to use...
76 -- Discussion in prosody@ concluded that 76 -- Discussion in prosody@ concluded that
77 -- 1 level back is usually enough by default 77 -- 1 level back is usually enough by default
78 local base_host = host:gsub("^[^%.]+", ""); 78 local base_host = host:gsub("^[^%.]+%.", "");
79 if hosts[base_host] then 79 if hosts[base_host] then
80 ssl_ctx = hosts[base_host].ssl_ctx; 80 ssl_ctx = hosts[base_host].ssl_ctx;
81 end 81 end
82 end 82 end
83 return { type = "component", host = host, connected = true, s2sout = {}, 83 return { type = "component", host = host, connected = true, s2sout = {},

mercurial