update golangci-lint version (#4817)

This commit is contained in:
fatedier authored and GitHub committed 2025-05-27 16:46:15 +08:00
1 parent 1ced733340
commit de690a55c8
18 files changed
+172 -210

No files matched your search

+3 -4
View File
@@ -325,10 +325,9 @@ func (svr *Service) loopLoginUntilSuccess(maxInterval time.Duration, firstLoginE
proxyCfgs := svr.proxyCfgs
visitorCfgs := svr.visitorCfgs
svr.cfgMu.RUnlock()
connEncrypted := true
if svr.clientSpec != nil && svr.clientSpec.Type == "ssh-tunnel" {
connEncrypted = false
}
connEncrypted := svr.clientSpec == nil || svr.clientSpec.Type != "ssh-tunnel"
sessionCtx := &SessionContext{
Common: svr.common,
RunID: svr.runID,