Software /
code /
prosody
Comparison
plugins/mod_admin_shell.lua @ 12787:3735ad8d6f8e 0.12
mod_admin_shell: Ensure connection exists to get port from (fixes #1777)
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 23 Oct 2022 16:19:39 +0200 |
parent | 12637:2200f0c6b3f1 |
child | 12788:3835c397b129 |
comparison
equal
deleted
inserted
replaced
12779:f0474d40364c | 12787:3735ad8d6f8e |
---|---|
743 title = "Port"; | 743 title = "Port"; |
744 description = "Server port used"; | 744 description = "Server port used"; |
745 width = 5; | 745 width = 5; |
746 align = "right"; | 746 align = "right"; |
747 key = "conn"; | 747 key = "conn"; |
748 mapper = function(conn) return conn:serverport(); end; | 748 mapper = function(conn) |
749 if conn then | |
750 return conn:serverport(); | |
751 end | |
752 end; | |
749 }; | 753 }; |
750 dir = { | 754 dir = { |
751 title = "Dir"; | 755 title = "Dir"; |
752 description = "Direction of server-to-server connection"; | 756 description = "Direction of server-to-server connection"; |
753 width = 3; | 757 width = 3; |