aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
Commit message (Collapse)AuthorAgeFilesLines
* mod_admin_telnet: Avoid indexing missing socket (thanks tmolitor)Kim Alvefur2020-02-051-12/+12
| | | | if `sock` was nil it would still proceed with SNI and ALPN checks
* mod_admin_telnet: Use promise based DNS resolvingKim Alvefur2020-01-241-7/+5
| | | | Mostly done for testing this new API
* Merge 0.11->trunkKim Alvefur2020-01-241-6/+19
|\
| * mod_admin_telnet: Create a DNS resolver per console session (fixes #1492)Kim Alvefur2020-01-241-6/+19
| | | | | | | | This is now the common pattern, eg see mod_s2s.
* | mod_admin_telnet: Silence luacheck warningsKim Alvefur2019-12-231-2/+4
| |
* | mod_admin_telnet: Include config:get() in help textKim Alvefur2019-12-221-0/+1
| |
* | mod_admin_telnet: Use common sort function in s2s:showKim Alvefur2019-12-151-2/+2
| |
* | mod_admin_telnet: Use existing host comparison when comparing JIDsKim Alvefur2019-12-151-1/+1
| |
* | mod_admin_telnet: Sort hosts in module:listKim Alvefur2019-12-151-10/+1
| |
* | mod_admin_telnet: Refactor internal function for listing hostsKim Alvefur2019-12-151-10/+16
| | | | | | | | Splits out a function that doesn't deal with modules for reuse elsewhere
* | mod_admin_telnet: Merge hostname comparison functionsKim Alvefur2019-12-151-6/+2
| | | | | | | | Missed that there existed one already when writing the one for host:list
* | mod_admin_telnet: Sort by complete labelsKim Alvefur2019-12-151-1/+1
| | | | | | | | Might as well.
* | mod_admin_telnet: Fix host sortingKim Alvefur2019-12-151-1/+1
| | | | | | | | Reversing each %P is a noop
* | mod_admin_telnet: Avoid using LuaSocket for timestampsKim Alvefur2019-12-081-2/+1
| | | | | | | | | | Using util.time will make it easier to move away from LuaSocket if we ever wanted to do that.
* | mod_admin_telnet: Sort hostsKim Alvefur2019-11-301-1/+5
| | | | | | | | | | | | Groups by domain in DNS hierarchy order or something. Why not split on '.' you ask? Well becasue that's not what I typed here. Also "[^.]" is longer than "%P".
* | mod_admin_telnet: Display ALPN in show_tls() if supported and availableKim Alvefur2019-11-211-0/+6
| |
* | mod_admin_telnet: Show SNI name in show_tls() if availableKim Alvefur2019-11-201-0/+6
| |
* | mod_admin_telnet: Show s2s authentication method (probably) usedKim Alvefur2019-11-021-0/+6
| |
* | mod_admin_telnet: xmpp:ping: Log ping timeKim Alvefur2019-10-061-1/+3
| |
* | mod_admin_telnet: Use new compact function for waiting on promisesKim Alvefur2019-09-291-7/+1
| |
* | mod_admin_telnet: Identify native bidi sessionsKim Alvefur2019-09-081-1/+3
| |
* | mod_admin_telnet: Identify bidi-capable s2sout sessions (fixes #1403)Kim Alvefur2019-09-071-1/+1
| |
* | mod_admin_telnet: Use already generated session idKim Alvefur2019-07-281-1/+1
| | | | | | | | Don't need to construct it from components again
* | mod_admin_telnet: Allow specifying a reason when closing sessions (#1400)Kim Alvefur2019-07-281-8/+17
| |
* | mod_admin_telnet: Add xmpp:ping to helpKim Alvefur2019-07-261-0/+3
| |
* | mod_admin_telnet: Add c2s:count() to helpKim Alvefur2019-07-261-0/+1
| |
* | mod_admin_telnet: Make c2s:count() consistent with c2s:show()Kim Alvefur2019-07-261-3/+2
| | | | | | | | Both now operate on the same complete set of c2s sessions
* | mod_admin_telnet: Factor out function for collecting all c2s sessions for ↵Kim Alvefur2019-07-261-2/+6
| | | | | | | | easier reuse
* | mod_admin_telnet: Include both c2s connections and sessions in c2s:show()Kim Alvefur2019-07-261-1/+3
| | | | | | | | This way both incomplete connections and hibernating c2s sessions are shown.
* | mod_admin_telnet: Move error handling to thread callback (fixes #1391)Kim Alvefur2019-05-101-7/+4
| | | | | | | | Avoids yielding over pcall boundry, fixes xmpp:ping() command on Lua 5.1
* | mod_admin_telnet: Check for simple commands before executing in sandboxKim Alvefur2019-05-101-5/+5
| | | | | | | | | | | | This makes fixing yield over pcall boundry issue easier since it would have jumped to the thread error handler instead of proceeding to checking for simple commands.
* | mod_admin_telnet: Collect array from Bosh connections when appending to ↵Michel Le Bihan2019-06-031-1/+1
| | | | | | | | | | | | connection list Fixes #1356
* | mod_admin_telnet: include BOSH connections in c2s:count (#998)Arc Riley2019-05-021-1/+3
| |
* | mod_admin_telnet: added "(bosh)" and "(websocket)" connection flags (#998)Arc Riley2019-05-021-0/+6
| |
* | mod_admin_telnet: include BOSH connections in c2s session commands (#998)Arc Riley2019-05-021-0/+1
| |
* | mod_admin_telnet: Adds c2s:closeall() (Fixes #1315)João Duarte2019-04-171-0/+11
| |
* | mod_admin_telnet: Show module status in module:list()Matthew Wild2019-03-191-1/+6
| |
* | mod_admin_telnet: sttas:show: Use format option that allows float numbersKim Alvefur2019-01-161-1/+1
| | | | | | | | string.format("%d", 0.5) causes an error on Lua 5.3
* | mod_admin_telnet: Sort stats by nameKim Alvefur2019-01-041-1/+1
| |
* | mod_admin_telnet: Serialize config values (table: 0x123abc isn't useful)Kim Alvefur2019-01-041-1/+2
| |
* | mod_admin_telnet: config:get: Assume the global section if only one argument ↵Kim Alvefur2019-01-041-0/+3
| | | | | | | | is given
* | mod_admin_telnet: Remove the long gone 'section' argument in the ↵Kim Alvefur2019-01-041-2/+2
| | | | | | | | undocumented config:get command
* | core.moduleapi: Use util.error for :send_iq errorsKim Alvefur2018-12-301-3/+0
| |
* | mod_admin_telnet: Validate hostnames in xmpp:ping commandKim Alvefur2018-12-291-2/+11
| | | | | | | | Attempt to ping some invalid hostnames cause weird behavior
* | mod_admin_telnet: Make xmpp:ping command wait and report the replyKim Alvefur2018-12-281-4/+19
| |
* | mod_admin_telnet: Enable async processing using util.asyncKim Alvefur2018-12-271-2/+22
| |
* | mod_admin_telnet: Invert host existence checkKim Alvefur2018-12-281-5/+4
| | | | | | | | Simplifies and reduces indentation
* | admin_telnet: show when bidi is used on s2sMaxime “pep” Buquet2018-12-181-0/+3
| |
* | various: Don't rely on _G.unpack existingKim Alvefur2018-12-081-0/+1
|/
* mod_admin_telnet: Allow viewing HTTP event listeners via debug:events('http')Matthew Wild2018-10-091-2/+5
|