Skip to content

Commit 673ff7e

Browse files
committed
fix(proxy): address golangci-lint findings
1 parent ca6b3af commit 673ff7e

5 files changed

Lines changed: 115 additions & 131 deletions

File tree

internal/proxy/addon.go

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,12 @@ import (
1414
"sync/atomic"
1515

1616
mitmproxy "github.com/lqqyt2423/go-mitmproxy/proxy"
17-
uuid "github.com/satori/go.uuid"
18-
"golang.org/x/sync/singleflight"
19-
2017
"github.com/nemirovsky/sluice/internal/audit"
2118
"github.com/nemirovsky/sluice/internal/policy"
2219
"github.com/nemirovsky/sluice/internal/store"
2320
"github.com/nemirovsky/sluice/internal/vault"
21+
uuid "github.com/satori/go.uuid"
22+
"golang.org/x/sync/singleflight"
2423
)
2524

2625
// maxCredNameLen is an upper bound for credential name length. Used by
@@ -270,7 +269,7 @@ func (a *SluiceAddon) ServerConnected(ctx *mitmproxy.ConnContext) {
270269
// TlsEstablishedServer is called after the TLS handshake with the upstream
271270
// server completes. It re-captures the CONNECT target in case the address
272271
// was refined during the TLS handshake (e.g. via SNI resolution).
273-
func (a *SluiceAddon) TlsEstablishedServer(ctx *mitmproxy.ConnContext) {
272+
func (a *SluiceAddon) TlsEstablishedServer(ctx *mitmproxy.ConnContext) { //nolint:revive // method name defined by go-mitmproxy Addon interface
274273
a.captureConnectTarget(ctx)
275274
}
276275

0 commit comments

Comments
 (0)