diff --git a/src/main.c b/src/main.c index 3836370..99f7011 100644 --- a/src/main.c +++ b/src/main.c @@ -329,7 +329,10 @@ int parse_argv(int argc, const char **argv, struct options *opts) { if (r == -1) r = inet_pton(AF_INET6, opts->addr, &test); opts->is_alias_passed = r == 0; - + + if (opts->command == 's' && opts->is_alias_passed) + return -1; + if (opts->command == '\0' || opts->addr[0] == '\0' || (!opts->is_alias_passed && opts->port == NULL)) return -1;