diff options
author | Kim Alvefur <zash@zash.se> | 2021-07-18 09:08:04 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2021-07-18 09:08:04 +0200 |
commit | 64a444e3a2d5998c53650e71d22b00d20b1b5e97 (patch) | |
tree | d35d64f02ebbd0ef9419afbcffb543d32297fe8d /core/loggingmanager.lua | |
parent | 5b7eea90c4b0c8fdc0f47e7ececf56065a2574ab (diff) | |
download | prosody-64a444e3a2d5998c53650e71d22b00d20b1b5e97.tar.gz prosody-64a444e3a2d5998c53650e71d22b00d20b1b5e97.zip |
mod_s2s: Guard against missing 'to' on incoming stream
Given an incoming <stream:stream from="example.com"> this line would
have mistakenly reported the 'from' as the local host. Neither are
technically required and may be missing, especially on connections used
only for Dialback.
Outgoing connections initiated by Prosody always have 'from_host' and
'to_host', so it is safer to check it this way.
Diffstat (limited to 'core/loggingmanager.lua')
0 files changed, 0 insertions, 0 deletions