summaryrefslogtreecommitdiff
path: root/one.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-12-12 16:25:41 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-12-12 16:25:41 -0800
commit890f6f0d35cc715f759cb3014c536a8801bd0c99 (patch)
treea2dbe08e9f9d7e2a51f9a41c9f55eebd5b25a917 /one.cpp
parentbad4b72f823642ee076c98a267ff425b59c47b2c (diff)
downloadinfinitytier-890f6f0d35cc715f759cb3014c536a8801bd0c99.tar.gz
infinitytier-890f6f0d35cc715f759cb3014c536a8801bd0c99.zip
Make allow management from a local.conf parameters.
Diffstat (limited to 'one.cpp')
-rw-r--r--one.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/one.cpp b/one.cpp
index 3dad2ed9..c4fc30e2 100644
--- a/one.cpp
+++ b/one.cpp
@@ -973,7 +973,6 @@ int main(int argc,char **argv)
std::string homeDir;
unsigned int port = ZT_DEFAULT_PORT;
bool skipRootCheck = false;
- const char *allowManagementFrom = (const char *)0;
for(int i=1;i<argc;++i) {
if (argv[i][0] == '-') {
@@ -987,14 +986,6 @@ int main(int argc,char **argv)
}
break;
- case 'M': // allow management from this IP/bits network
- allowManagementFrom = argv[i] + 2;
- if (!strlen(allowManagementFrom)) {
- printHelp(argv[0],stdout);
- return 1;
- }
- break;
-
#ifdef __UNIX_LIKE__
case 'd': // Run in background as daemon
runAsDaemon = true;
@@ -1176,7 +1167,7 @@ int main(int argc,char **argv)
unsigned int returnValue = 0;
for(;;) {
- zt1Service = OneService::newInstance(homeDir.c_str(),port,allowManagementFrom);
+ zt1Service = OneService::newInstance(homeDir.c_str(),port);
switch(zt1Service->run()) {
case OneService::ONE_STILL_RUNNING: // shouldn't happen, run() won't return until done
case OneService::ONE_NORMAL_TERMINATION: