equal
deleted
inserted
replaced
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; |