Skip to content

Commit

Permalink
fix(transport): perform mTLS endpoint switching when custom http clie…
Browse files Browse the repository at this point in the history
…nt is provided (#1038)

For existing users that provide custom http clients today, this change is invisible since it is gated by the mTLS environment variable.
  • Loading branch information
shinfan authored May 24, 2021
1 parent fc8188c commit c07165f
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions transport/internal/dca/dca.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ func GetClientCertificateSourceAndEndpoint(settings *internal.DialSettings) (cer
func getClientCertificateSource(settings *internal.DialSettings) (cert.Source, error) {
if !isClientCertificateEnabled() {
return nil, nil
} else if settings.HTTPClient != nil {
return nil, nil // HTTPClient is incompatible with ClientCertificateSource
} else if settings.ClientCertSource != nil {
return settings.ClientCertSource, nil
} else {
Expand Down

0 comments on commit c07165f

Please sign in to comment.