mirror of
https://github.com/ZLMediaKit/ZLMediaKit.git
synced 2026-02-09 09:50:51 +08:00
getAllSession接口返回链接类型
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user