From b3aeaf0f917a895332ff937c7ab64638eacc0eae Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Sun, 29 May 2011 22:10:54 +0200 Subject: [PATCH] Show hostname and port in error message when connecting to a running tincd. --- src/tincctl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/tincctl.c b/src/tincctl.c index 93bb465c..20fc991f 100644 --- a/src/tincctl.c +++ b/src/tincctl.c @@ -535,8 +535,7 @@ int main(int argc, char *argv[], char *envp[]) { #endif if(connect(fd, res->ai_addr, res->ai_addrlen) < 0) { - - fprintf(stderr, "Cannot connect to %s: %s\n", controlcookiename, sockstrerror(sockerrno)); + fprintf(stderr, "Cannot connect to %s port %s: %s\n", host ?: "localhost", port, sockstrerror(sockerrno)); return 1; } -- 2.39.5