[client] Retry on tun creation for darwin (#2564)

The interface creation on macOS seems to be asynchronus why the tun.create methode somethimes failes becasue the interface is not ready yet. To work around this issue we introduce a retry on tun.create
This commit is contained in:
pascal-fischer
2024-09-09 19:02:10 +02:00
committed by GitHub
parent 51e1d3ab8f
commit f43a0a0177
3 changed files with 29 additions and 3 deletions

View File

@@ -550,8 +550,6 @@ func (am *DefaultAccountManager) SyncPeer(ctx context.Context, sync PeerSync, ac
}
if peer.UserID != "" {
log.Infof("Peer has no userID")
user, err := account.FindUser(peer.UserID)
if err != nil {
return nil, nil, nil, err