Diff

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
line wrap: on
line diff
--- a/plugins/mod_admin_shell.lua	Thu Oct 20 16:31:18 2022 +0200
+++ b/plugins/mod_admin_shell.lua	Sun Oct 23 16:19:39 2022 +0200
@@ -745,7 +745,11 @@
 		width = 5;
 		align = "right";
 		key = "conn";
-		mapper = function(conn) return conn:serverport(); end;
+		mapper = function(conn)
+			if conn then
+				return conn:serverport();
+			end
+		end;
 	};
 	dir = {
 		title = "Dir";