新增:连接验权 auth 处理
git-svn-id: svn://47.119.165.148/zhub@156 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
@@ -87,6 +87,7 @@ type ZConn struct { //ZConn
|
||||
substoped map[string]chan int // 关闭信号量
|
||||
ping int64 // 最后心跳时间
|
||||
pong int64 // 最后心跳回复时间
|
||||
auth bool // 是否已验证授权
|
||||
}
|
||||
|
||||
type Lock struct {
|
||||
@@ -483,6 +484,7 @@ func Info() map[string]interface{} {
|
||||
m["groupid"] = c.groupid
|
||||
m["topics"] = c.topics
|
||||
m["timers"] = c.timers
|
||||
m["auth"] = c.auth
|
||||
conns = append(conns, m)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user