possibly fix admin socket getnodeinfo

This commit is contained in:
Arceliar 2021-05-16 15:55:30 -05:00
parent fad071ffe9
commit eb4a22724f
2 changed files with 7 additions and 27 deletions

View file

@ -109,6 +109,7 @@ func (tun *TunAdapter) Init(core *yggdrasil.Core, config *config.NodeState, log
tun.config = config
tun.log = log
tun.nodeinfo.init(tun)
tun.nodeinfo.setNodeInfo(config.Current.NodeInfo, config.Current.NodeInfoPrivacy)
if err := tun.core.SetOutOfBandHandler(tun.oobHandler); err != nil {
return fmt.Errorf("tun.core.SetOutOfBandHander: %w", err)
}