fix linter

This commit is contained in:
pascal
2026-07-16 13:24:34 +02:00
parent 820303c71d
commit 8fd098dcc7
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ func (s *BaseServer) GRPCServer() *grpc.Server {
// With the native transport enabled, TLS is terminated at the listeners
// (cmux-split shared listener and legacy port), so transport credentials
// must not be set or the server would attempt a second handshake.
if nativeGRPCEnabled() {
if nativeGRPCEnabled() { //nolint:gocritic
log.Info("native gRPC transport enabled, TLS is terminated at the listeners")
} else if s.Config.HttpConfig.LetsEncryptDomain != "" {
certManager, err := encryption.CreateCertManager(s.Config.Datadir, s.Config.HttpConfig.LetsEncryptDomain)
+1 -1
View File
@@ -462,7 +462,7 @@ func preferHTTP1ForDualProtoClients(base *tls.Config) *tls.Config {
if slices.Contains(hello.SupportedProtos, "http/1.1") && slices.Contains(hello.SupportedProtos, "h2") {
return h1Config, nil
}
return nil, nil
return base, nil
}
return steered
}