Skip to content

Commit 99857e9

Browse files
committed
test
1 parent 64b8fe8 commit 99857e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

http/pool.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ func (s *WSPool) RemoveClient(c WSSpeaker) {
156156
func (s *WSPool) GetStatus() map[string]WSConnStatus {
157157
clients := make(map[string]WSConnStatus)
158158
for _, client := range s.GetSpeakers() {
159-
clients[client.GetHost()] = client.GetStatus()
159+
a, _ := client.GetAddrPort()
160+
clients[a] = client.GetStatus()
160161
}
161162
return clients
162163
}

0 commit comments

Comments
 (0)