From 9cc4563fae6909dcc757a1b5376947cbef4f2aa0 Mon Sep 17 00:00:00 2001 From: xia-chu <771730766@qq.com> Date: Fri, 9 Jan 2026 11:34:40 +0800 Subject: [PATCH] =?UTF-8?q?getAllSession=E6=8E=A5=E5=8F=A3=E8=BF=94?= =?UTF-8?q?=E5=9B=9E=E9=93=BE=E6=8E=A5=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/WebApi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/server/WebApi.cpp b/server/WebApi.cpp index a53fb270..82f32197 100755 --- a/server/WebApi.cpp +++ b/server/WebApi.cpp @@ -1079,6 +1079,7 @@ void installWebApi() { } fillSockInfo(jsession, session.get()); jsession["id"] = id; + jsession["type"] = session->getSock()->sockType() == SockNum::Sock_TCP ? "tcp" : "udp"; jsession["typeid"] = toolkit::demangle(typeid(*session).name()); val["data"].append(jsession); });