Fix config load from file in Windows

This commit is contained in:
emanuele-f 2019-07-08 22:56:13 +02:00
parent 561f0e2f4f
commit 9cc2aee7fc

2
edge.c
View File

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