lxd/endpoints/network.go
func (l *networkListener) Config(cert *shared.CertInfo) {
	config := util.ServerTLSConfig(cert)

	l.mu.Lock()
	defer l.mu.Unlock()

	l.config = config
}
func (l *networkListener) Config(cert *shared.CertInfo) {
	config := util.ServerTLSConfig(cert)

	l.mu.Lock()
	defer l.mu.Unlock()

	l.config = config
}
func ( l * networkListener ) Config ( cert * shared . CertInfo ) { config := util . ServerTLSConfig ( cert ) l . mu . Lock ( ) defer l . mu . Unlock ( ) l . config = config }
// Config safely swaps the underlying TLS configuration.
Config safely swaps the underlying TLS configuration .