diff --git a/aucat/aucat.1 b/aucat/aucat.1 index 1917d0d..c45b3d2 100644 --- a/aucat/aucat.1 +++ b/aucat/aucat.1 @@ -152,6 +152,11 @@ Without this option, listens on the .Ux Ns -domain socket only, and is not reachable from any network. +If the option argument is +.Sq - +then +.Nm +will accept connections from any address. .It Fl l Detach and become a daemon. .It Fl m Ar mode diff --git a/aucat/listen.c b/aucat/listen.c index 31414b7..d51b36b 100644 --- a/aucat/listen.c +++ b/aucat/listen.c @@ -110,7 +110,7 @@ listen_new_tcp(char *addr, unsigned port) */ memset(&aihints, 0, sizeof(struct addrinfo)); snprintf(serv, sizeof(serv), "%u", port); - host = strcmp(addr, "*") == 0 ? NULL : addr; + host = strcmp(addr, "-") == 0 ? NULL : addr; aihints.ai_flags |= AI_PASSIVE; aihints.ai_socktype = SOCK_STREAM; aihints.ai_protocol = IPPROTO_TCP; diff --git a/aucat/midicat.1 b/aucat/midicat.1 index 3a010b4..ce70978 100644 --- a/aucat/midicat.1 +++ b/aucat/midicat.1 @@ -69,6 +69,11 @@ Without this option, listens on the .Ux Ns -domain socket only, and is not reachable from any network. +If the option argument is +.Sq - +then +.Nm +will accept connections from any address. .It Fl l Detach and become a daemon. .It Fl o Ar file