MINOR: warning on multiple -x

Multiple use of the -x option is useless, emit a warning.
This commit is contained in:
William Lallemand 2017-06-19 16:37:19 +02:00 committed by Willy Tarreau
parent 45eff44e28
commit 4fc09693d6

View File

@ -1283,7 +1283,10 @@ static void init(int argc, char **argv)
Alert("Unix socket path expected with the -x flag\n\n");
usage(progname);
}
if (old_unixsocket)
Warning("-x option already set, overwriting the value\n");
old_unixsocket = argv[1];
argv++;
argc--;
}