mirror of https://github.com/schollz/croc.git
try fix
This commit is contained in:
parent
ea7ed1a2db
commit
f6e2560742
|
@ -161,20 +161,20 @@ func pipe(conn1 net.Conn, conn2 net.Conn) {
|
|||
writer2 := bufio.NewWriter(conn2)
|
||||
|
||||
for {
|
||||
b1 := <-chan1:
|
||||
if b1 == nil {
|
||||
return
|
||||
}
|
||||
writer2.Write(b1)
|
||||
writer2.Flush()
|
||||
|
||||
// case b2 := <-chan2:
|
||||
// if b2 == nil {
|
||||
// return
|
||||
// }
|
||||
// writer1.Write(b2)
|
||||
// writer1.Flush()
|
||||
// }
|
||||
b1 := <-chan1
|
||||
if b1 == nil {
|
||||
return
|
||||
}
|
||||
writer2.Write(b1)
|
||||
writer2.Flush()
|
||||
|
||||
// case b2 := <-chan2:
|
||||
// if b2 == nil {
|
||||
// return
|
||||
// }
|
||||
// writer1.Write(b2)
|
||||
// writer1.Flush()
|
||||
// }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue