Fixed code smells
This commit is contained in:
@@ -72,8 +72,8 @@ func proxy(client net.Conn, target string) {
|
||||
// Create a wait group and copy between client and server bidirectionally,
|
||||
// either side needs to generate data for the detection to work.
|
||||
var group sync.WaitGroup
|
||||
group.Go(func() { io.Copy(client, server) })
|
||||
group.Go(func() { io.Copy(server, client) })
|
||||
group.Go(func() { _, _ = io.Copy(client, server) })
|
||||
group.Go(func() { _, _ = io.Copy(server, client) })
|
||||
|
||||
// Wait until the interceptor produces data.
|
||||
result := <-intercepted
|
||||
|
Reference in New Issue
Block a user