[management] Fix extended config when nil (#3593)

* Fix extended config when nil

* update integrations
This commit is contained in:
Maycon Santos
2025-03-27 23:07:10 +01:00
committed by GitHub
parent 101cce27f2
commit 50f5cc48cd
4 changed files with 7 additions and 6 deletions

View File

@ -637,8 +637,8 @@ func toSyncResponse(ctx context.Context, config *types.Config, peer *nbpeer.Peer
}
nbConfig := toNetbirdConfig(config, turnCredentials, relayCredentials, extraSettings)
integrationsConfig.ExtendNetBirdConfig(peer.ID, nbConfig, extraSettings)
response.NetbirdConfig = nbConfig
extendedConfig := integrationsConfig.ExtendNetBirdConfig(peer.ID, nbConfig, extraSettings)
response.NetbirdConfig = extendedConfig
response.NetworkMap.PeerConfig = response.PeerConfig