mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-24 09:03:14 +01:00
Remove extra error mapping (#2050)
This commit is contained in:
parent
41fe9f84ec
commit
7a1c96ebf4
@ -1858,7 +1858,7 @@ func (am *DefaultAccountManager) SyncAndMarkPeer(peerPubKey string, realIP net.I
|
|||||||
|
|
||||||
peer, netMap, err := am.SyncPeer(PeerSync{WireGuardPubKey: peerPubKey}, account)
|
peer, netMap, err := am.SyncPeer(PeerSync{WireGuardPubKey: peerPubKey}, account)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, nil, mapError(err)
|
return nil, nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
err = am.MarkPeerConnected(peerPubKey, true, realIP, account)
|
err = am.MarkPeerConnected(peerPubKey, true, realIP, account)
|
||||||
|
Loading…
Reference in New Issue
Block a user