Repository navigation
ZeroTier page under Settings → VPN #989
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
5cd9364
server: ZeroTier VPN provider (nanokvm-zerotier add-on)
Msprg f5e61ed
web: ZeroTier page under Settings > VPN
Msprg 0f28901
docs: the ZeroTier page in the VPN notes and feature list
Msprg 2a03bb2
recovery: keep ZeroTier state when restoring a backup that predates it
Msprg 63f1370
zerotier: stop it for removal only under the package lock; report run…
Msprg 42d1cde
web: one ZeroTier status request at a time
Msprg a83c0ab
recovery: a restore journal records the settings groups it covers
Msprg bbf8c43
apkpkg: stop for a removal only when apk will purge the package
Msprg 696b46b
recovery: a replayed reset changes only the groups it recorded
Msprg 001edad
apkpkg: a removal counts only once the installed database shows it
Msprg 63bc7de
zerotier: the status query has a timeout
Msprg da8f21d
recovery: a backup covers ZeroTier only once the device has its state
Msprg 0b856e8
web: ZeroTier page states a service that does not answer yet
Msprg 2df6649
recovery: the ZeroTier identity is covered only by a backup that has one
Msprg ef7a920
zerotier: uninstall decides from the installed database, under the lock
Msprg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,32 @@ | ||
| package proto | ||
|
|
||
| type ZerotierState string | ||
|
|
||
| const ( | ||
| ZerotierNotInstall ZerotierState = "notInstall" | ||
| ZerotierNotRunning ZerotierState = "notRunning" | ||
| // The service runs but has not reached the root servers yet. | ||
| ZerotierConnecting ZerotierState = "connecting" | ||
| ZerotierRunning ZerotierState = "running" | ||
| ) | ||
|
|
||
| type ZerotierNetwork struct { | ||
| ID string `json:"id"` | ||
| Name string `json:"name"` | ||
| Status string `json:"status"` | ||
| Type string `json:"type"` | ||
| Device string `json:"device"` | ||
| Addresses []string `json:"addresses"` | ||
| } | ||
|
|
||
| type GetZerotierStatusRsp struct { | ||
| State ZerotierState `json:"state"` | ||
| Address string `json:"address,omitempty"` | ||
| IP string `json:"ip,omitempty"` | ||
| Version string `json:"version,omitempty"` | ||
| Networks []ZerotierNetwork `json:"networks,omitempty"` | ||
| } | ||
|
|
||
| type ZerotierNetworkReq struct { | ||
| Network string `json:"network"` | ||
| } |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.