[#549] node: Add TLS to bootstrap address

Signed-off-by: Pavel Karpy <carpawell@nspcc.ru>
This commit is contained in:
Pavel Karpy 2021-05-26 19:06:43 +03:00 committed by Alex Vanin
parent f89c8bf239
commit 077f1af5a7

View file

@ -354,6 +354,10 @@ func initCfg(path string) *cfg {
tlsKeyFile = viperCfg.GetString(cfgTLSKeyFile) tlsKeyFile = viperCfg.GetString(cfgTLSKeyFile)
} }
if tlsEnabled {
netAddr.AddTLS()
}
state := newNetworkState() state := newNetworkState()
containerWorkerPool, err := ants.NewPool(notificationHandlerPoolSize) containerWorkerPool, err := ants.NewPool(notificationHandlerPoolSize)