mirror of
https://gitee.com/xia-chu/ZLMediaKit.git
synced 2026-05-06 10:57:50 +08:00
getAllSession接口返回链接类型
This commit is contained in:
parent
cd8a14d1ca
commit
9cc4563fae
@ -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);
|
||||
});
|
||||
|
||||
Loading…
Reference in New Issue
Block a user