Browse Source

Fix config load from file in Windows

pull/166/head
emanuele-f 5 years ago
parent
commit
9cc2aee7fc
  1. 2
      edge.c

2
edge.c

@ -620,13 +620,11 @@ int main(int argc, char* argv[]) {
traceEvent(TRACE_NORMAL, "Starting n2n edge %s %s", PACKAGE_VERSION, PACKAGE_BUILDDATE); traceEvent(TRACE_NORMAL, "Starting n2n edge %s %s", PACKAGE_VERSION, PACKAGE_BUILDDATE);
#ifndef WIN32
if((argc >= 2) && (argv[1][0] != '-')) { if((argc >= 2) && (argv[1][0] != '-')) {
rc = loadFromFile(argv[1], &conf, &ec); rc = loadFromFile(argv[1], &conf, &ec);
if(argc > 2) if(argc > 2)
rc = loadFromCLI(argc, argv, &conf, &ec); rc = loadFromCLI(argc, argv, &conf, &ec);
} else } else
#endif
rc = loadFromCLI(argc, argv, &conf, &ec); rc = loadFromCLI(argc, argv, &conf, &ec);
if(rc < 0) if(rc < 0)

Loading…
Cancel
Save