aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_s2s/s2sout.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-02-09 15:13:46 +0100
committerKim Alvefur <zash@zash.se>2014-02-09 15:13:46 +0100
commit9aaaa36f583b548763e55d18b56468d1d96e2e96 (patch)
treebd8a2cfc5fb9bf12e626c68c95731108f4f59149 /plugins/mod_s2s/s2sout.lib.lua
parent9a9dd21edf4c6ad318fcd31c0fe740cf1b7dba81 (diff)
downloadprosody-9aaaa36f583b548763e55d18b56468d1d96e2e96.tar.gz
prosody-9aaaa36f583b548763e55d18b56468d1d96e2e96.zip
mod_s2s: Log a warning if no local addresses are found, as this breaks s2sout
Diffstat (limited to 'plugins/mod_s2s/s2sout.lib.lua')
-rw-r--r--plugins/mod_s2s/s2sout.lib.lua3
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;