mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-14 02:27:38 -07:00
Add a local.conf option to set the port.
This commit is contained in:
parent
0052877d2f
commit
cd7b571da0
2 changed files with 2 additions and 0 deletions
|
@ -987,6 +987,7 @@ public:
|
|||
_interfacePrefixBlacklist.clear();
|
||||
json &settings = _localConfig["settings"];
|
||||
if (settings.is_object()) {
|
||||
_primaryPort = (unsigned int)OSUtils::jsonInt(settings["primaryPort"],(uint64_t)_primaryPort) & 0xffff;
|
||||
_portMappingEnabled = OSUtils::jsonBool(settings["portMappingEnabled"],true);
|
||||
|
||||
const std::string up(OSUtils::jsonString(settings["softwareUpdate"],ZT_SOFTWARE_UPDATE_DEFAULT));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue