Comparison

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
comparison
equal deleted inserted replaced
6009:1579b53351e2 6015:8fead005ee60
345 has_ipv6 = true; 345 has_ipv6 = true;
346 elseif sources[i].proto == "IPv4" then 346 elseif sources[i].proto == "IPv4" then
347 has_ipv4 = true; 347 has_ipv4 = true;
348 end 348 end
349 end 349 end
350 if not (has_ipv4 or has_ipv6) then
351 module:log("warn", "No local IPv4 or IPv6 addresses detected, outgoing connections may fail");
352 end
350 end); 353 end);
351 354
352 return s2sout; 355 return s2sout;