189 elseif origin.type == "component" or origin.type == "local" then |
189 elseif origin.type == "component" or origin.type == "local" then |
190 -- Route via s2s for components and modules |
190 -- Route via s2s for components and modules |
191 log("debug", "Routing outgoing stanza for %s to %s", from_host, host); |
191 log("debug", "Routing outgoing stanza for %s to %s", from_host, host); |
192 send_s2s(from_host, host, stanza); |
192 send_s2s(from_host, host, stanza); |
193 else |
193 else |
194 log("warn", "received stanza from unhandled connection type: %s", origin.type); |
194 log("warn", "received %s stanza from unhandled connection type: %s", tostring(stanza.name), tostring(origin.type)); |
195 end |
195 end |
196 end |
196 end |