aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-12-26 20:35:40 +0100
committerKim Alvefur <zash@zash.se>2012-12-26 20:35:40 +0100
commit2fcee0e7f8872fd4357ed15e7c34cc327ec99ae1 (patch)
tree5bbd6b49aac7077d566f6bc7eaf3298a445a5d3e /plugins/mod_admin_telnet.lua
parent1d1efd975193cd7d8f0bb221b9bedba3a50d9065 (diff)
parentea67b3cd4ab3813c3d0c2bb368dccd644a2a9a26 (diff)
downloadprosody-2fcee0e7f8872fd4357ed15e7c34cc327ec99ae1.tar.gz
prosody-2fcee0e7f8872fd4357ed15e7c34cc327ec99ae1.zip
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-rw-r--r--plugins/mod_admin_telnet.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index a56f2992..12ab2355 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -204,6 +204,7 @@ function commands.help(session, data)
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 @@ function commands.help(session, data)
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