0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 13:21:00 +02:00
This commit is contained in:
Zack Scholl 2018-09-26 09:27:36 -07:00
parent 7a961ecffd
commit 0bd4a0ac75

View file

@ -168,7 +168,7 @@ func pipe(conn1 net.Conn, conn2 net.Conn) {
return
}
writer2.Write(b1)
if bytes.Equal(b1, "magic") {
if bytes.Equal(b1, []byte("magic")) {
writer2.Flush()
}
@ -177,7 +177,7 @@ func pipe(conn1 net.Conn, conn2 net.Conn) {
return
}
writer1.Write(b2)
if bytes.Equal(b2, "magic") {
if bytes.Equal(b2, []byte("magic")) {
writer1.Flush()
}
}