plugins/mod_c2s.lua
changeset 9493 6e4fbd12c11c
parent 8850 74526c425dec
child 9743 a74d78f79b23
child 10017 62d8689beafb
equal deleted inserted replaced
9492:09b873ac7eb8 9493:6e4fbd12c11c
    69 			text = "The 'to' attribute must remain the same across stream restarts" };
    69 			text = "The 'to' attribute must remain the same across stream restarts" };
    70 		return;
    70 		return;
    71 	end
    71 	end
    72 	session.version = tonumber(attr.version) or 0;
    72 	session.version = tonumber(attr.version) or 0;
    73 	session.streamid = uuid_generate();
    73 	session.streamid = uuid_generate();
    74 	(session.log or session)("debug", "Client sent opening <stream:stream> to %s", session.host);
    74 	(session.log or log)("debug", "Client sent opening <stream:stream> to %s", session.host);
    75 
    75 
    76 	if not hosts[session.host] or not hosts[session.host].modules.c2s then
    76 	if not hosts[session.host] or not hosts[session.host].modules.c2s then
    77 		-- We don't serve this host...
    77 		-- We don't serve this host...
    78 		session:close{ condition = "host-unknown", text = "This server does not serve "..tostring(session.host)};
    78 		session:close{ condition = "host-unknown", text = "This server does not serve "..tostring(session.host)};
    79 		return;
    79 		return;