0
0
Fork 0
mirror of https://github.com/schollz/croc.git synced 2025-10-11 21:30:16 +02:00
This commit is contained in:
Zack Scholl 2018-09-26 09:40:40 -07:00
parent e92c7f15f1
commit ea7ed1a2db

View file

@ -161,14 +161,12 @@ func pipe(conn1 net.Conn, conn2 net.Conn) {
writer2 := bufio.NewWriter(conn2)
for {
select {
case b1 := <-chan1:
b1 := <-chan1:
if b1 == nil {
return
}
writer2.Write(b1)
writer2.Flush()
default:
// case b2 := <-chan2:
// if b2 == nil {