xx
This commit is contained in:
@@ -191,11 +191,11 @@ func (h *TCPHandler) HandleClient(conn net.Conn) {
|
|||||||
}
|
}
|
||||||
broadcastMessage(message)
|
broadcastMessage(message)
|
||||||
case "db":
|
case "db":
|
||||||
//if !client.IsAuth {
|
if !client.IsAuth {
|
||||||
// fmt.Printf("来自未授权客户端的消息 %s\n", conn.RemoteAddr())
|
fmt.Printf("来自未授权客户端的消息 %s\n", conn.RemoteAddr())
|
||||||
// conn.Close()
|
conn.Close()
|
||||||
// return
|
return
|
||||||
//}
|
}
|
||||||
if err := h.Server.Db(client, message); err != nil {
|
if err := h.Server.Db(client, message); err != nil {
|
||||||
fmt.Printf("获取客户端音量分贝错误: %v\n", err)
|
fmt.Printf("获取客户端音量分贝错误: %v\n", err)
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user