mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 21:30:16 +02:00
try fix
This commit is contained in:
parent
e92c7f15f1
commit
ea7ed1a2db
1 changed files with 2 additions and 4 deletions
|
@ -161,15 +161,13 @@ func pipe(conn1 net.Conn, conn2 net.Conn) {
|
||||||
writer2 := bufio.NewWriter(conn2)
|
writer2 := bufio.NewWriter(conn2)
|
||||||
|
|
||||||
for {
|
for {
|
||||||
select {
|
b1 := <-chan1:
|
||||||
case b1 := <-chan1:
|
|
||||||
if b1 == nil {
|
if b1 == nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
writer2.Write(b1)
|
writer2.Write(b1)
|
||||||
writer2.Flush()
|
writer2.Flush()
|
||||||
default:
|
|
||||||
|
|
||||||
// case b2 := <-chan2:
|
// case b2 := <-chan2:
|
||||||
// if b2 == nil {
|
// if b2 == nil {
|
||||||
// return
|
// return
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue