equal
deleted
inserted
replaced
547 -- Send a reply stream header |
547 -- Send a reply stream header |
548 session.to_host = attr.to and nameprep(attr.to); |
548 session.to_host = attr.to and nameprep(attr.to); |
549 session.from_host = attr.from and nameprep(attr.from); |
549 session.from_host = attr.from and nameprep(attr.from); |
550 |
550 |
551 session.streamid = uuid_gen(); |
551 session.streamid = uuid_gen(); |
552 (session.log or log)("debug", "Incoming s2s received <stream:stream>"); |
552 (session.log or log)("debug", "Incoming s2s received %s", st.stanza("stream:stream", attr):top_tag()); |
553 if session.to_host then |
553 if session.to_host then |
554 if not hosts[session.to_host] then |
554 if not hosts[session.to_host] then |
555 -- Attempting to connect to a host we don't serve |
555 -- Attempting to connect to a host we don't serve |
556 session:close({ |
556 session:close({ |
557 condition = "host-unknown"; |
557 condition = "host-unknown"; |