Properly purge default certificate from stores before logging
This commit is contained in:
parent
e78843bdca
commit
b498c7bcbb
1 changed files with 4 additions and 2 deletions
|
@ -151,8 +151,10 @@ func (c *ConfigurationWatcher) preLoadConfiguration(configMsg dynamic.Message) {
|
||||||
if copyConf.TLS != nil {
|
if copyConf.TLS != nil {
|
||||||
copyConf.TLS.Certificates = nil
|
copyConf.TLS.Certificates = nil
|
||||||
|
|
||||||
for _, v := range copyConf.TLS.Stores {
|
for k := range copyConf.TLS.Stores {
|
||||||
v.DefaultCertificate = nil
|
st := copyConf.TLS.Stores[k]
|
||||||
|
st.DefaultCertificate = nil
|
||||||
|
copyConf.TLS.Stores[k] = st
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue