Skip to content

Commit

Permalink
PDC: Fix env var config fallback (#952)
Browse files Browse the repository at this point in the history
* use correct fields

* fix test
  • Loading branch information
wbrowne committed Apr 15, 2024
1 parent 18baf20 commit 93ac8d4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions backend/proxy/env.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ func clientCfgFromEnv() *ClientCfg {
}

return &ClientCfg{
ClientCert: clientCert,
ClientKey: clientKey,
RootCAs: rootCAs,
ClientCertVal: clientCert,
ClientKeyVal: clientKey,
RootCAsVals: rootCAs,
ProxyAddress: proxyAddress,
ServerName: serverName,
AllowInsecure: false,
Expand Down
6 changes: 3 additions & 3 deletions backend/proxy/env_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ func TestClientCfgFromEnv(t *testing.T) {
},
expected: &ClientCfg{
ProxyAddress: "localhost",
ClientCert: testFileData,
ClientKey: testFileData,
RootCAs: []string{testFileData, testFileData},
ClientCertVal: testFileData,
ClientKeyVal: testFileData,
RootCAsVals: []string{testFileData, testFileData},
ServerName: "name",
AllowInsecure: false,
},
Expand Down

0 comments on commit 93ac8d4

Please sign in to comment.