[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cvs commit: projects/csup proto.c
mux 2006-02-02 19:02:42 UTC
FreeBSD projects repository
Slightly rework proto_connect() so that:
- We don't print an error if the socket() call fails with EPROTONOTSUPP.
Since we use getaddrinfo() in csup, we may get several addresses for
one hostname, and some of them might be IPv6 so if the host running
csup doesn't support IPv6, that can happen and confuse people.
- Only print the "Cannot connect" message once.
I should probably add the usual -4 and -6 switches to csup now.
Revision Changes Path
1.57 +13 -5 projects/csup/proto.c