mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 13:21:00 +02:00
try fix
This commit is contained in:
parent
7a961ecffd
commit
0bd4a0ac75
1 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue