aa
This commit is contained in:
@@ -95,6 +95,7 @@ func handleConn(c net.Conn) {
|
||||
}
|
||||
//看是心跳还是打印返回
|
||||
data := hex.EncodeToString(buffer[:n])
|
||||
globals.SugarLogger.Debugf("handleConn heart : [%v]", data)
|
||||
//证明是心跳
|
||||
if strings.Contains(data, heartText) {
|
||||
printNoData, _ := hex.DecodeString(data[len(heartText) : len(data)-8])
|
||||
|
||||
Reference in New Issue
Block a user