@@ -124,7 +124,7 @@ func startLocalProxyServer(proxyAddr string, sess *yamux.Session, callback func(
124
124
return fmt .Errorf ("listen for relay connection: %w" , err )
125
125
}
126
126
127
- defer proxyListener .Close () //nolint:errcheck,gosec
127
+ defer proxyListener .Close () //nolint:errcheck
128
128
129
129
if callback != nil {
130
130
callback (Event {Type : TypeSOCKS5Active })
@@ -187,8 +187,8 @@ func handleLocalProxyConn(conn net.Conn, sess *yamux.Session) error {
187
187
var eg errgroup.Group
188
188
189
189
eg .Go (func () error {
190
- defer conn .Close () //nolint:errcheck,gosec
191
- defer yamuxConn .Close () //nolint:errcheck,gosec
190
+ defer conn .Close () //nolint:errcheck
191
+ defer yamuxConn .Close () //nolint:errcheck
192
192
193
193
_ , err := io .Copy (yamuxConn , conn )
194
194
if err != nil && ! errors .Is (err , net .ErrClosed ) {
@@ -199,8 +199,8 @@ func handleLocalProxyConn(conn net.Conn, sess *yamux.Session) error {
199
199
})
200
200
201
201
eg .Go (func () error {
202
- defer conn .Close () //nolint:errcheck,gosec
203
- defer yamuxConn .Close () //nolint:errcheck,gosec
202
+ defer conn .Close () //nolint:errcheck
203
+ defer yamuxConn .Close () //nolint:errcheck
204
204
205
205
_ , err := io .Copy (conn , yamuxConn )
206
206
if err != nil && ! errors .Is (err , net .ErrClosed ) {
0 commit comments