Comparison

plugins/mod_s2s/mod_s2s.lua @ 10249:790c6ae54dd6

mod_s2s: Remove warning about hostname mismatch It triggers on bidi-related routing where this to/from is flipped. Removing since I don't think we have ever seen this potential bug.
author Kim Alvefur <zash@zash.se>
date Sat, 07 Sep 2019 18:54:59 +0200
parent 10248:d7cadd118053
child 10311:1bb1e16f24b0
comparison
equal deleted inserted replaced
10248:d7cadd118053 10249:790c6ae54dd6
137 log("error", "Trying to send a stanza to ourselves??") 137 log("error", "Trying to send a stanza to ourselves??")
138 log("error", "Traceback: %s", traceback()); 138 log("error", "Traceback: %s", traceback());
139 log("error", "Stanza: %s", stanza); 139 log("error", "Stanza: %s", stanza);
140 return false; 140 return false;
141 else 141 else
142 -- FIXME
143 if host.from_host ~= from_host then
144 log("error", "WARNING! This might, possibly, be a bug, but it might not...");
145 log("error", "We are going to send from %s instead of %s", host.from_host, from_host);
146 end
147 if host.sends2s(stanza) then 142 if host.sends2s(stanza) then
148 return true; 143 return true;
149 end 144 end
150 end 145 end
151 end 146 end