diff options
author | Matthew Wild <mwild1@gmail.com> | 2013-05-21 13:18:56 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2013-05-21 13:18:56 +0100 |
commit | e0e0c27671fa7c544271f63dfec28c1fa8878601 (patch) | |
tree | 49bbcd6fb3d51ca4d7e1b4bb865d86c5d109304a | |
parent | 0f019413c1cecd0d657d6b858bf3b1718f4345be (diff) | |
download | prosody-e0e0c27671fa7c544271f63dfec28c1fa8878601.tar.gz prosody-e0e0c27671fa7c544271f63dfec28c1fa8878601.zip |
prosodyctl: check config: Show a suggestion to change hosts that begin with jabber/xmpp/chat/im subdomains, and link to DNS documentation
-rwxr-xr-x | prosodyctl | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -820,7 +820,15 @@ function commands.check(arg) print(""); print(" You need to move the following option"..(n>1 and "s" or "")..": "..table.concat(it.to_array(misplaced_options), ", ")); end + local subdomain = host:match("^[^.]+"); + if not(is_component) and (subdomain == "jabber" or subdomain == "xmpp" + or subdomain == "chat" or subdomain == "im") then + print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to"); + print(" "..host:gsub("^[^.]+%.", "")..". You can use SRV records to redirect XMPP clients and servers to "..host.."."); + print(" For more information see: http://prosody.im/doc/dns"); + end end + print("Done.\n"); end if not what or what == "dns" then |