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;