Comparison

core/hostmanager.lua @ 3984:6be419e2f509

hostmanager: Don't set host.disallow_s2s when anonymous_login=true (mod_auth_anonymous does this now).
author Waqas Hussain <waqas20@gmail.com>
date Tue, 28 Dec 2010 09:58:40 +0500
parent 3717:135128fdf565
child 4460:a813a130cede
comparison
equal deleted inserted replaced
3983:38ec7255b111 3984:6be419e2f509
65 disallow_s2s = configmanager.get(host, "core", "disallow_s2s"); 65 disallow_s2s = configmanager.get(host, "core", "disallow_s2s");
66 }; 66 };
67 if not host_config.core.component_module then -- host 67 if not host_config.core.component_module then -- host
68 host_session.type = "local"; 68 host_session.type = "local";
69 host_session.sessions = {}; 69 host_session.sessions = {};
70 if configmanager.get(host, "core", "anonymous_login") then
71 host_session.disallow_s2s = (configmanager.get(host, "core", "disallow_s2s") ~= false);
72 end
73 else -- component 70 else -- component
74 host_session.type = "component"; 71 host_session.type = "component";
75 end 72 end
76 hosts[host] = host_session; 73 hosts[host] = host_session;
77 if not host:match("[@/]") then 74 if not host:match("[@/]") then