From 1cda5b83e3fb3e7e2ee71dd565e2dacaa1321cd7 Mon Sep 17 00:00:00 2001 From: Alexandre Ratchov Date: Tue, 3 May 2011 21:36:52 +0200 Subject: [PATCH] replace '*' -> '-' as address to listen to and document it --- aucat/aucat.1 | 5 +++++ aucat/listen.c | 2 +- aucat/midicat.1 | 5 +++++ 3 files changed, 11 insertions(+), 1 deletion(-) 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