Software /
code /
prosody
Comparison
util/prosodyctl/check.lua @ 13220:56decf85db1d
Merge 0.12->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 17 Jul 2023 14:57:27 +0200 |
parent | 13218:e576c6a0d1f8 |
parent | 13219:22763b30e458 |
child | 13256:53708752cc5d |
comparison
equal
deleted
inserted
replaced
13218:e576c6a0d1f8 | 13220:56decf85db1d |
---|---|
826 end | 826 end |
827 | 827 |
828 if external_addresses:empty() then | 828 if external_addresses:empty() then |
829 print(""); | 829 print(""); |
830 print(" Failed to determine the external addresses of this server. Checks may be inaccurate."); | 830 print(" Failed to determine the external addresses of this server. Checks may be inaccurate."); |
831 print(" If you know the correct external addresses you can specify them in the config like:") | |
832 print(" external_addresses = { \"192.0.2.34\", \"2001:db8::abcd:1234\" }") | |
831 c2s_srv_required, s2s_srv_required = true, true; | 833 c2s_srv_required, s2s_srv_required = true, true; |
832 end | 834 end |
833 | 835 |
834 local v6_supported = not not socket.tcp6; | 836 local v6_supported = not not socket.tcp6; |
835 local use_ipv4 = global:get_option_boolean("use_ipv4", true); | 837 local use_ipv4 = global:get_option_boolean("use_ipv4", true); |
1101 print(""); | 1103 print(""); |
1102 print("The addresses we found on this system are:"); | 1104 print("The addresses we found on this system are:"); |
1103 print(""); | 1105 print(""); |
1104 print(" Internal: "..tostring(internal_addresses)); | 1106 print(" Internal: "..tostring(internal_addresses)); |
1105 print(" External: "..tostring(external_addresses)); | 1107 print(" External: "..tostring(external_addresses)); |
1108 print("") | |
1109 print("If the list of external external addresses is incorrect you can specify correct addresses in the config:") | |
1110 print(" external_addresses = { \"192.0.2.34\", \"2001:db8::abcd:1234\" }") | |
1106 end | 1111 end |
1107 print(""); | 1112 print(""); |
1108 print("For more information about DNS configuration please see https://prosody.im/doc/dns"); | 1113 print("For more information about DNS configuration please see https://prosody.im/doc/dns"); |
1109 print(""); | 1114 print(""); |
1110 ok = false; | 1115 ok = false; |