From 2146e7bb846dd2f02595d887fe613c4b873943dd Mon Sep 17 00:00:00 2001 From: Arnaud Vrac Date: Mon, 24 Jun 2013 15:10:35 +0200 Subject: [PATCH] endpoint: use AF_INET6 socket family by default --- src/endpoint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/endpoint.c b/src/endpoint.c index 8aee3a9..feb2822 100644 --- a/src/endpoint.c +++ b/src/endpoint.c @@ -79,7 +79,7 @@ rudp_error_t rudp_endpoint_bind(struct rudp_endpoint *endpoint) return err; } - int family = AF_INET; + int family = AF_INET6; if ( addr ) family = ((const struct sockaddr_in *)addr)->sin_family;