diff options
author | Kim Alvefur <zash@zash.se> | 2014-02-09 15:13:46 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-02-09 15:13:46 +0100 |
commit | b96d8e97efbee4a848d26d13eec62a19c6e68c3a (patch) | |
tree | bd8a2cfc5fb9bf12e626c68c95731108f4f59149 | |
parent | 811670915801a7db431859c78576f8d39c88bf18 (diff) | |
download | prosody-b96d8e97efbee4a848d26d13eec62a19c6e68c3a.tar.gz prosody-b96d8e97efbee4a848d26d13eec62a19c6e68c3a.zip |
mod_s2s: Log a warning if no local addresses are found, as this breaks s2sout
-rw-r--r-- | plugins/mod_s2s/s2sout.lib.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/plugins/mod_s2s/s2sout.lib.lua b/plugins/mod_s2s/s2sout.lib.lua index 575d37ac..b24faf85 100644 --- a/plugins/mod_s2s/s2sout.lib.lua +++ b/plugins/mod_s2s/s2sout.lib.lua @@ -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; |