Move to networkMap.PeerConfig

This commit is contained in:
M Essam Hamed
2025-09-16 11:45:54 +03:00
parent d19f829f65
commit 02afd4e849
5 changed files with 68 additions and 67 deletions
+2 -2
View File
@@ -718,8 +718,8 @@ func (e *Engine) handleSync(update *mgmProto.SyncResponse) error {
e.syncMsgMux.Lock()
defer e.syncMsgMux.Unlock()
if update.NetworkMap != nil {
e.handleAutoUpdateVersion(update.NetworkMap.AutoUpdateVersion)
if update.NetworkMap != nil && update.NetworkMap.PeerConfig != nil {
e.handleAutoUpdateVersion(update.NetworkMap.PeerConfig.AutoUpdateVersion)
}
if update.GetNetbirdConfig() != nil {
wCfg := update.GetNetbirdConfig()