Comparison

util/prosodyctl/check.lua @ 11653:51141309ffc4

util.prosodyctl.check: Point out if A/AAAA exists despite disabled IPvX Clients would try to connect and receive an error or timeout, increasing the time it takes to establish a connection. Probably not what you want. If you really want IPv6 or IPv4 disabled, best remove the A or AAAA record.
author Kim Alvefur <zash@zash.se>
date Sun, 04 Jul 2021 01:32:04 +0200
parent 11652:887d7b15e21b
child 11654:52c7a0e74bb2
comparison
equal deleted inserted replaced
11652:887d7b15e21b 11653:51141309ffc4
516 end 516 end
517 end 517 end
518 end 518 end
519 end 519 end
520 520
521 if host_ok_v4 and not use_ipv4 then
522 print(" Host "..target_host.." does seem to resolve to this server but IPv4 has been disabled");
523 all_targets_ok = false;
524 end
525
526 if host_ok_v6 and not use_ipv6 then
527 print(" Host "..target_host.." does seem to resolve to this server but IPv6 has been disabled");
528 all_targets_ok = false;
529 end
530
521 local bad_protos = {} 531 local bad_protos = {}
522 if use_ipv4 and not host_ok_v4 then 532 if use_ipv4 and not host_ok_v4 then
523 table.insert(bad_protos, "IPv4"); 533 table.insert(bad_protos, "IPv4");
524 end 534 end
525 if use_ipv6 and not host_ok_v6 then 535 if use_ipv6 and not host_ok_v6 then