1
0
mirror of https://github.com/sairson/Yasso.git synced 2026-02-09 13:25:28 +08:00

优化代码结构

This commit is contained in:
sairson
2022-01-11 09:10:49 +08:00
parent 97045ecf4e
commit 5bfeb4a0c5

View File

@@ -91,7 +91,10 @@ func RequestMs17010(conn net.Conn, ip string) (bool, error) {
treeConnectRequest[32] = userID[0]
treeConnectRequest[33] = userID[1]
// TODO change the ip in tree path though it doesn't matter
conn.Write(treeConnectRequest)
_, err = conn.Write(treeConnectRequest)
if err != nil {
return false, err
}
if n, err := conn.Read(reply); err != nil || n < 36 {
return false, err