aboutsummaryrefslogtreecommitdiffstats
path: root/spec/util_json_spec.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-07-18 09:08:04 +0200
committerKim Alvefur <zash@zash.se>2021-07-18 09:08:04 +0200
commit64a444e3a2d5998c53650e71d22b00d20b1b5e97 (patch)
treed35d64f02ebbd0ef9419afbcffb543d32297fe8d /spec/util_json_spec.lua
parent5b7eea90c4b0c8fdc0f47e7ececf56065a2574ab (diff)
downloadprosody-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 'spec/util_json_spec.lua')
0 files changed, 0 insertions, 0 deletions