diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-12-12 16:25:41 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-12-12 16:25:41 -0800 |
commit | 890f6f0d35cc715f759cb3014c536a8801bd0c99 (patch) | |
tree | a2dbe08e9f9d7e2a51f9a41c9f55eebd5b25a917 /one.cpp | |
parent | bad4b72f823642ee076c98a267ff425b59c47b2c (diff) | |
download | infinitytier-890f6f0d35cc715f759cb3014c536a8801bd0c99.tar.gz infinitytier-890f6f0d35cc715f759cb3014c536a8801bd0c99.zip |
Make allow management from a local.conf parameters.
Diffstat (limited to 'one.cpp')
-rw-r--r-- | one.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
@@ -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: |