If you need this, implement it

This commit is contained in:
Frank Denis 2021-06-07 11:26:37 +02:00
parent 0d81fa2796
commit dc99f1bc2c
1 changed files with 3 additions and 0 deletions

View File

@ -622,6 +622,9 @@ func ConfigLoad(proxy *Proxy, flags *ConfigFlags) error {
if len(dohClientCreds) > 0 {
dlog.Noticef("Enabling TLS authentication")
configClientCred := dohClientCreds[0]
if len(dohClientCreds) > 1 {
dlog.Fatal("Only one tls_client_auth entry is currently supported")
}
proxy.xTransport.tlsClientCreds = DOHClientCreds{
clientCert: configClientCred.ClientCert,
clientKey: configClientCred.ClientKey,