mod_s2s: Log a warning if no local addresses are found, as this breaks s2sout
authorKim Alvefur <zash@zash.se>
Sun, 9 Feb 2014 14:13:46 +0000 (15:13 +0100)
committerKim Alvefur <zash@zash.se>
Sun, 9 Feb 2014 14:13:46 +0000 (15:13 +0100)
plugins/mod_s2s/s2sout.lib.lua

index 575d37acc676369bcdd7b1eb1f68ea46f2a2d4cb..b24faf8553cf84d5dd173cd674429766cc880052 100644 (file)
@@ -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;