Changeset

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
parents 6009:1579b53351e2
children 6016:eb05360e8525
files plugins/mod_s2s/s2sout.lib.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;