mirror of
https://github.com/netbirdio/netbird.git
synced 2026-10-12 16:39:09 +02:00
Pure plumbing, no change on the wire. Both halves exist for the same reason: the value this PR needs to publish is not reachable from the code paths that have to publish it, and widening the signatures is separable from moving the value. On the management side, the resolution between the account setting and the server-config default moves into resolveDebugUploadURL, and the default becomes a parameter that ToSyncResponse and ToComponentSyncResponse take rather than something read off the server config at the point of use. The callers that have a server config pass its value, which is what the code read before, so every response keeps the destination it had. The peer fan-out builds its sync with a nil server config, so anything derived from that config inside the conversion is unavailable there; a parameter is reachable from the fan-out. On the client side, Engine.Start takes the login response's PeerConfig. Nothing reads it yet.