Show hostname and port in error message when connecting to a running tincd.
This commit is contained in:
parent
04de15984f
commit
b3aeaf0f91
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue