Diff

plugins/mod_s2s/s2sout.lib.lua @ 6015:8fead005ee60

mod_s2s: Log a warning if no local addresses are found, as this breaks s2sout
author Kim Alvefur <zash@zash.se>
date Sun, 09 Feb 2014 15:13:46 +0100
parent 5703:ea00fc524b95
child 6017:ac0879a8190a
child 6631:45222bfb206f
line wrap: on
line diff
--- a/plugins/mod_s2s/s2sout.lib.lua	Thu Feb 06 10:44:21 2014 +0100
+++ b/plugins/mod_s2s/s2sout.lib.lua	Sun Feb 09 15:13:46 2014 +0100
@@ -347,6 +347,9 @@
 			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;