mirror of
https://github.com/netbirdio/netbird.git
synced 2024-11-26 01:53:42 +01:00
settings nil check
This commit is contained in:
parent
2129b23fe7
commit
ba96e102b4
@ -406,7 +406,7 @@ func (am *DefaultAccountManager) AddPeer(setupKey, userID string, peer *nbpeer.P
|
||||
Ephemeral: ephemeral,
|
||||
}
|
||||
|
||||
if account.Settings.Extra.PeerApprovalEnabled {
|
||||
if account.Settings.Extra != nil && account.Settings.Extra.PeerApprovalEnabled {
|
||||
newPeer.Status.RequiresApproval = true
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user