Skip to content

Commit eda3b7e

Browse files
dntjdfawley
authored andcommitted
client: fix handling of GRPC_GO_REQUIRE_HANDSHAKE=on to not interpret as "hybrid" (#2603)
6cc789b made `envconfig.RequireHandshakeOn` the default when unspecified by environment variable, but missed a fallthrough leading to `GRPC_GO_REQUIRE_HANDSHAKE=on` specifying `envconfig.RequireHandshakeHybrid`. This change adds the missing fallthrough.
1 parent 17f2449 commit eda3b7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: internal/envconfig/envconfig.go

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ var (
5959
func init() {
6060
switch strings.ToLower(os.Getenv(requireHandshakeStr)) {
6161
case "on":
62+
fallthrough
6263
default:
6364
RequireHandshake = RequireHandshakeOn
6465
case "off":

0 commit comments

Comments
 (0)