mod_admin_telnet: Add info about port commands to help
authorKim Alvefur <zash@zash.se>
Wed, 26 Dec 2012 02:46:49 +0100
changeset 5270 20e14961f630
parent 5269 7bc52402966d
child 5271 f716a3c58b4b
child 5272 1e555909f23d
mod_admin_telnet: Add info about port commands to help
plugins/mod_admin_telnet.lua
--- a/plugins/mod_admin_telnet.lua	Sun Dec 23 17:04:44 2012 +0100
+++ b/plugins/mod_admin_telnet.lua	Wed Dec 26 02:46:49 2012 +0100
@@ -204,6 +204,7 @@
 		print [[host - Commands to activate, deactivate and list virtual hosts]]
 		print [[user - Commands to create and delete users, and change their passwords]]
 		print [[server - Uptime, version, shutting down, etc.]]
+		print [[port - Commands to manage ports the server is listening on]]
 		print [[config - Reloading the configuration, etc.]]
 		print [[console - Help regarding the console itself]]
 	elseif section == "c2s" then
@@ -233,6 +234,9 @@
 		print [[server:version() - Show the server's version number]]
 		print [[server:uptime() - Show how long the server has been running]]
 		print [[server:shutdown(reason) - Shut down the server, with an optional reason to be broadcast to all connections]]
+	elseif section == "port" then
+		print [[port:list() - Lists all network ports prosody currently listens on]]
+		print [[port:close(port, interface) - Close a port]]
 	elseif section == "config" then
 		print [[config:reload() - Reload the server configuration. Modules may need to be reloaded for changes to take effect.]]
 	elseif section == "console" then