Software /
code /
prosody
Comparison
prosodyctl @ 5590:597450c73ce6
prosodyctl: check dns: More concise output (merged separate v4/v6 warnings)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 17 May 2013 14:55:57 +0100 |
parent | 5589:8745193e651e |
child | 5591:f0bf2a1790d9 |
comparison
equal
deleted
inserted
replaced
5589:8745193e651e | 5590:597450c73ce6 |
---|---|
935 all_targets_ok = false; | 935 all_targets_ok = false; |
936 end | 936 end |
937 end | 937 end |
938 end | 938 end |
939 | 939 |
940 local bad_protos = {} | |
940 if not host_ok_v4 then | 941 if not host_ok_v4 then |
941 print(" Host "..host.." does not seem to resolve to this server for IPv4"); | 942 table.insert(bad_protos, "IPv4"); |
942 end | 943 end |
943 if not host_ok_v6 and v6_supported then | 944 if not host_ok_v6 then |
944 print(" Host "..host.." does not seem to resolve to this server for IPv6"); | 945 table.insert(bad_protos, "IPv6"); |
945 elseif host_ok_v6 and not v6_supported then | 946 end |
947 if #bad_protos > 0 then | |
948 print(" Host "..host.." does not seem to resolve to this server ("..table.concat(bad_protos, "/")..")"); | |
949 end | |
950 if host_ok_v6 and not v6_supported then | |
946 print(" Host "..host.." has AAAA records, but your version of LuaSocket does not support IPv6."); | 951 print(" Host "..host.." has AAAA records, but your version of LuaSocket does not support IPv6."); |
947 print(" Please see http://prosody.im/doc/ipv6 for more information."); | 952 print(" Please see http://prosody.im/doc/ipv6 for more information."); |
948 end | 953 end |
949 end | 954 end |
950 if not all_targets_ok then | 955 if not all_targets_ok then |