mirror of
https://github.com/rancher/dynamiclistener.git
synced 2025-08-31 21:00:20 +00:00
Don't reset connections on the first load of the certs
This commit is contained in:
@@ -370,7 +370,7 @@ func (l *listener) loadCert() (*tls.Certificate, error) {
|
||||
}
|
||||
|
||||
// cert has changed, close closeWrapper wrapped connections if this isn't the first load
|
||||
if l.conns != nil && l.cert == nil {
|
||||
if l.conns != nil && l.cert != nil {
|
||||
l.connLock.Lock()
|
||||
for _, conn := range l.conns {
|
||||
_ = conn.close()
|
||||
|
Reference in New Issue
Block a user