Mercurial > prosody-hg
comparison util/prosodyctl/check.lua @ 14221:565debd9c37a
Merge 13.0->trunk
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Fri, 12 Jun 2026 13:05:10 +0100 |
| parents | 2ec517d8d43e 8f34af6a3821 |
| children | 866422587486 |
comparison
equal
deleted
inserted
replaced
| 14216:2ec517d8d43e | 14221:565debd9c37a |
|---|---|
| 463 "statistics", | 463 "statistics", |
| 464 "statistics_config", | 464 "statistics_config", |
| 465 "statistics_interval", | 465 "statistics_interval", |
| 466 "tcp_keepalives", | 466 "tcp_keepalives", |
| 467 "tls_profile", | 467 "tls_profile", |
| 468 "tls_profile_version", | |
| 468 "trusted_proxies", | 469 "trusted_proxies", |
| 469 "umask", | 470 "umask", |
| 470 "use_dane", | 471 "use_dane", |
| 471 "use_dnssec", | 472 "use_dnssec", |
| 472 "use_ipv4", | 473 "use_ipv4", |
| 728 elseif require_encryption and not all_modules:contains("tls") then | 729 elseif require_encryption and not all_modules:contains("tls") then |
| 729 print(""); | 730 print(""); |
| 730 print(" You require encryption but mod_tls is not enabled."); | 731 print(" You require encryption but mod_tls is not enabled."); |
| 731 print(" Connections will fail."); | 732 print(" Connections will fail."); |
| 732 ok = false; | 733 ok = false; |
| 734 end | |
| 735 | |
| 736 do | |
| 737 local tlsref = require "prosody.util.tlsref"; | |
| 738 local tls_profile_name = configmanager.get("*", "tls_profile"); | |
| 739 local tls_profile_version = configmanager.get("*", "tls_profile_version"); | |
| 740 local profile, err = tlsref.get_profile(tls_profile_version, tls_profile_name); | |
| 741 if not profile then | |
| 742 print(""); | |
| 743 print(" TLS profile selection:"); | |
| 744 if err == "unknown-version" then | |
| 745 print((" tls_profile_version is set to an unknown value (%q)"):format(tls_profile_version)); | |
| 746 print((" Valid values: \"%s\""):format(tlsref.get_valid_versions():concat("\", \""))); | |
| 747 elseif err == "unknown-profile" then | |
| 748 print((" tls_profile is set to an unknown value (%q)"):format(tls_profile_name)); | |
| 749 print((" Valid values: \"%s\""):format(tlsref.get_valid_profile_names():concat("\", \""))); | |
| 750 else | |
| 751 print((" Unknown error loading the configured profile: %s"):format(err)); | |
| 752 end | |
| 753 end | |
| 733 end | 754 end |
| 734 | 755 |
| 735 do | 756 do |
| 736 local registration_enabled_hosts = {}; | 757 local registration_enabled_hosts = {}; |
| 737 for host in enabled_hosts() do | 758 for host in enabled_hosts() do |
