-
-
Notifications
You must be signed in to change notification settings - Fork 535
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1341 from netbirdio/feature/peer-approval
Add peer and settings validation
- Loading branch information
Showing
34 changed files
with
739 additions
and
423 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package account | ||
|
||
type ExtraSettings struct { | ||
// PeerApprovalEnabled enables or disables the need for peers bo be approved by an administrator | ||
PeerApprovalEnabled bool | ||
} | ||
|
||
// Copy copies the ExtraSettings struct | ||
func (e *ExtraSettings) Copy() *ExtraSettings { | ||
return &ExtraSettings{ | ||
PeerApprovalEnabled: e.PeerApprovalEnabled, | ||
} | ||
} |
Oops, something went wrong.