diff --git a/samples/socks5-proxy/main.c b/samples/socks5-proxy/main.c index 04020cbd..e77c7c69 100644 --- a/samples/socks5-proxy/main.c +++ b/samples/socks5-proxy/main.c @@ -63,9 +63,9 @@ const char *_getprogname(void) { static void parse_opts(server_config *cf, int argc, char **argv) { int opt; - while (-1 != (opt = getopt(argc, argv, "H:hp:"))) { + while (-1 != (opt = getopt(argc, argv, "b:hp:"))) { switch (opt) { - case 'H': + case 'b': cf->bind_host = optarg; break; @@ -85,7 +85,7 @@ static void parse_opts(server_config *cf, int argc, char **argv) { static void usage(void) { printf("Usage:\n" "\n" - " %s [-b
[-h] [-p