projects
/
oweals
/
tinc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b1a1c2
)
Give IP address instead of hex number when connecting tcp socket failed.
author
Ivo Timmermans
<ivo@lychnis.net>
Sun, 14 May 2000 21:07:16 +0000
(21:07 +0000)
committer
Ivo Timmermans
<ivo@lychnis.net>
Sun, 14 May 2000 21:07:16 +0000
(21:07 +0000)
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index 6de95b5f0c87ebb1ed7778c42856fa0c7499f302..f8c7306d18bdc7512f20b082e18b1b8aa2a61e2a 100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-654,8
+654,8
@@
cp
if(connect(nfd, (struct sockaddr *)&a, sizeof(a)) == -1)
{
- syslog(LOG_ERR, "C
reate connection to %08lx:%d failed: %m", ntohs(cl->real_ip)
,
- cl->port);
+ syslog(LOG_ERR, "C
onnecting to " IP_ADDR_S ":%d failed: %m"
,
+
IP_ADDR_V(cl->real_ip),
cl->port);
return -1;
}