mirror of
https://github.com/ntop/n2n.git
synced 2024-09-19 16:41:11 +02:00
Fix config load from file in Windows
This commit is contained in:
parent
561f0e2f4f
commit
9cc2aee7fc
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);
|
||||
|
||||
#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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user