Skip to content

Commit

Permalink
Merge pull request #490 from iiiusky/fix/portfwdBug
Browse files Browse the repository at this point in the history
fix: Remove default from select, which will cause the cpu to spike
Overriding commit signing for this one, it's a one line change with no security impact.
  • Loading branch information
rkervella authored Aug 3, 2021
2 parents 94eb136 + 3f83761 commit 7ef4923
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions client/core/tunnel.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,6 @@ func (tun *Tunnel) Read(data []byte) (int, error) {
case data := <-tun.Recv:
log.Printf("Read %d bytes", len(data))
buff.Write(data)
default:
break
}
n := copy(data, buff.Bytes())
return n, nil
Expand Down

0 comments on commit 7ef4923

Please sign in to comment.