Skip to content

Commit

Permalink
endpoint: use AF_INET6 socket family by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rawoul committed Jun 24, 2013
1 parent d6d7058 commit 2146e7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endpoint.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 2146e7b

Please sign in to comment.