From f57b22d4d6283187f49746688d6a61a53a6d8f45 Mon Sep 17 00:00:00 2001 From: Arjan Bal Date: Mon, 19 Aug 2024 15:17:54 +0530 Subject: [PATCH] Set default EnforceALPNEnabled option to true --- internal/envconfig/envconfig.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/envconfig/envconfig.go b/internal/envconfig/envconfig.go index 00abc7c2beb0..452985f8d8f1 100644 --- a/internal/envconfig/envconfig.go +++ b/internal/envconfig/envconfig.go @@ -45,7 +45,7 @@ var ( // option is present for backward compatibility. This option may be overridden // by setting the environment variable "GRPC_ENFORCE_ALPN_ENABLED" to "true" // or "false". - EnforceALPNEnabled = boolFromEnv("GRPC_ENFORCE_ALPN_ENABLED", false) + EnforceALPNEnabled = boolFromEnv("GRPC_ENFORCE_ALPN_ENABLED", true) // XDSFallbackSupport is the env variable that controls whether support for // xDS fallback is turned on. If this is unset or is false, only the first // xDS server in the list of server configs will be used.