projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04de159
)
Show hostname and port in error message when connecting to a running tincd.
author
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 29 May 2011 20:10:54 +0000
(22:10 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Sun, 29 May 2011 20:10:54 +0000
(22:10 +0200)
src/tincctl.c
patch
|
blob
|
history
diff --git
a/src/tincctl.c
b/src/tincctl.c
index
93bb465
..
20fc991
100644
(file)
--- 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;
}