mirror of
https://github.com/bjc/prosody.git
synced 2025-04-05 14:17:37 +03:00
mod_s2s: Log a warning if no local addresses are found, as this breaks s2sout
This commit is contained in:
parent
f41583535f
commit
5e2d0c3ba7
1 changed files with 3 additions and 0 deletions
|
@ -347,6 +347,9 @@ module:hook_global("service-added", function (event)
|
|||
has_ipv4 = true;
|
||||
end
|
||||
end
|
||||
if not (has_ipv4 or has_ipv6) then
|
||||
module:log("warn", "No local IPv4 or IPv6 addresses detected, outgoing connections may fail");
|
||||
end
|
||||
end);
|
||||
|
||||
return s2sout;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue