Change to slashes for host/port delimiter.

This commit is contained in:
Ian Gulliver
2016-02-17 11:10:01 -08:00
parent c98e97d8fc
commit d60a2c9869
2 changed files with 8 additions and 8 deletions

View File

@@ -30,7 +30,7 @@ static void print_usage(char *argv[]) {
"\n"
"Options:\n"
"\t--help\n"
"\t--backend=HOST:PORT\n"
"\t--backend=HOST/PORT\n"
"\t--dump=FORMAT\n"
, argv[0]);
}
@@ -48,7 +48,7 @@ static bool parse_opts(int argc, char *argv[], int epoll_fd) {
switch (opt) {
case 'b':
// It would be really nice if libc had a standard way to split host:port.
delim = strrchr(optarg, ':');
delim = strrchr(optarg, '/');
if (delim == NULL) {
print_usage(argv);
return false;