From: Guus Sliepen Date: Sun, 29 May 2011 20:10:54 +0000 (+0200) Subject: Show hostname and port in error message when connecting to a running tincd. X-Git-Tag: release-1.1pre1~33 X-Git-Url: https://git.tinc-vpn.org/git/browse?a=commitdiff_plain;h=b3aeaf0f917a895332ff937c7ab64638eacc0eae;p=tinc Show hostname and port in error message when connecting to a running tincd. --- 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; }