forked from zerotier/ZeroTierOne
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to enable or disable networks (and interfaces) (fixes
zerotier#659) This is non-production ready code that adds the ability to disable certain networks. This adds two new CLI commands (and corresponding HTTP endpoints): zerotier-cli enable <network> - Enables a network zerotier-cli disable <network> - Disables a network A disabled network gets loaded briefly on startup, but will be torn down immediatly after startup. A disabled network behaves like the user left the network, except that config data and the (Windows) network interface is still retained (in an offline state). Joining or leaving a disabled network won't work. In order to rejoin a disabled network, it must be re-enabled instead (disabling & enabling also auto-leaves/joins networks as appropriate). Disabled networks remain disabled, even across restarts, until enabled again via the appropriate command. Note: - The code has not been tested much and may not conform to quality standards - No changes have been made to the (Windows) GUI application. This feature can only be used via the CLI and *not* via the (Windows) GUI. This is an adapted version of commit 1dbbeb2, rebased on ZeroTier 1.6.7
- Loading branch information
1 parent
5d555ca
commit 5091b90
Showing
7 changed files
with
187 additions
and
48 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
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