Software /
code /
prosody
Comparison
prosodyctl @ 5616:a79c6717ee2b
prosodyctl: check config: Show a suggestion to change hosts that begin with jabber/xmpp/chat/im subdomains, and link to DNS documentation
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 May 2013 13:18:56 +0100 |
parent | 5610:f73d5fb4ea13 |
child | 5617:783078bc111c |
comparison
equal
deleted
inserted
replaced
5615:b678868cf2d8 | 5616:a79c6717ee2b |
---|---|
818 print(" in the global section of the config file, above any VirtualHost or Component definitions,") | 818 print(" in the global section of the config file, above any VirtualHost or Component definitions,") |
819 print(" see http://prosody.im/doc/configure#overview for more information.") | 819 print(" see http://prosody.im/doc/configure#overview for more information.") |
820 print(""); | 820 print(""); |
821 print(" You need to move the following option"..(n>1 and "s" or "")..": "..table.concat(it.to_array(misplaced_options), ", ")); | 821 print(" You need to move the following option"..(n>1 and "s" or "")..": "..table.concat(it.to_array(misplaced_options), ", ")); |
822 end | 822 end |
823 end | 823 local subdomain = host:match("^[^.]+"); |
824 if not(is_component) and (subdomain == "jabber" or subdomain == "xmpp" | |
825 or subdomain == "chat" or subdomain == "im") then | |
826 print(" Suggestion: If "..host.. " is a new host with no real users yet, consider renaming it now to"); | |
827 print(" "..host:gsub("^[^.]+%.", "")..". You can use SRV records to redirect XMPP clients and servers to "..host.."."); | |
828 print(" For more information see: http://prosody.im/doc/dns"); | |
829 end | |
830 end | |
831 | |
824 print("Done.\n"); | 832 print("Done.\n"); |
825 end | 833 end |
826 if not what or what == "dns" then | 834 if not what or what == "dns" then |
827 local dns = require "net.dns"; | 835 local dns = require "net.dns"; |
828 local ip = require "util.ip"; | 836 local ip = require "util.ip"; |