diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-25 14:59:11 -0500 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2018-01-25 14:59:11 -0500 |
commit | 125ec622ca446021ad3d2a707752b11fcb5dd195 (patch) | |
tree | 2da8ecc9cfb6a34165cc556def152497e85a9002 /service/OneService.cpp | |
parent | 384e5b66decbbe3eda00b95690c6a56cb140c4f7 (diff) | |
download | infinitytier-125ec622ca446021ad3d2a707752b11fcb5dd195.tar.gz infinitytier-125ec622ca446021ad3d2a707752b11fcb5dd195.zip |
Add bindToWildcard local.conf option.
Diffstat (limited to 'service/OneService.cpp')
-rw-r--r-- | service/OneService.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp index b6b6f5fe..a9a8171c 100644 --- a/service/OneService.cpp +++ b/service/OneService.cpp @@ -565,6 +565,7 @@ public: } // Read local configuration + bool bindToWildcard = false; { std::map<InetAddress,ZT_PhysicalPathConfiguration> ppc; @@ -626,12 +627,15 @@ public: } } - // Allow controller DB path to be put somewhere else json &settings = _localConfig["settings"]; if (settings.is_object()) { + // Allow controller DB path to be put somewhere else const std::string cdbp(OSUtils::jsonString(settings["controllerDbPath"],"")); if (cdbp.length() > 0) _controllerDbPath = cdbp; + + // Bind to wildcard instead of to specific interfaces (disables full tunnel capability) + bindToWildcard = OSUtils::jsonBool(settings["bindToWildcard"],false); } // Set trusted paths if there are any @@ -801,7 +805,7 @@ public: if (_ports[i]) p[pc++] = _ports[i]; } - _binder.refresh(_phy,p,pc,*this); + _binder.refresh(_phy,p,pc,bindToWildcard,*this); { Mutex::Lock _l(_nets_m); for(std::map<uint64_t,NetworkState>::iterator n(_nets.begin());n!=_nets.end();++n) { |