cvsd commit: MODIFIED: . ...
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
cvsd commit: MODIFIED: . ...
- From: Commits of the cvsd project <cvsd-commits [at] lists.arthurdejong.org>
- To: cvsd-commits [at] lists.arthurdejong.org
- Reply-to: cvsd-users [at] lists.arthurdejong.org
- Subject: cvsd commit: MODIFIED: . ...
- Date: Sun, 29 Aug 2010 15:29:22 +0200
User: arthur
Date: 10/08/29 15:29:22
Modified: . cfg.c
Log:
use AI_ADDRCONFIG with getaddrinfo() to avoid getting addresses for protocols
we cannot handle on this host
Revision Changes Path
1.8 +1 -1 cvsd/cfg.c
Index: cfg.c
===================================================================
RCS file: /home/arthur/devel/repos/cvsd/cfg.c,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -b -r1.7 -r1.8
--- cfg.c 23 May 2006 21:20:15 -0000 1.7
+++ cfg.c 29 Aug 2010 13:29:22 -0000 1.8
@@ -122,7 +122,7 @@
/* create the name for the socket */
memset(&hints,0,sizeof(struct addrinfo));
- hints.ai_flags=AI_PASSIVE;
+ hints.ai_flags=AI_PASSIVE|AI_ADDRCONFIG;
hints.ai_family=PF_UNSPEC;
hints.ai_socktype=SOCK_STREAM;
switch (i=getaddrinfo(node,service,&hints,&(addr->addrs)))
--
To unsubscribe send an email to
cvsd-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/cvsd-commits