This commit is contained in:
suyl
2021-06-28 18:16:05 +08:00
parent 53623954e7
commit 235b2264ef

View File

@@ -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])