Skip to content

Commit a9a5357

Browse files
committed
Merge pull request robbiehanson#157 from boyvanamstel/ipv6_fix
Fixing a typo that caused trouble for ipv6 udp
2 parents 1ae38c5 + c498151 commit a9a5357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

GCD/GCDAsyncUdpSocket.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2243,7 +2243,7 @@ - (BOOL)getLocalAddress:(NSData **)dataPtr
22432243
LogWarn(@"Error in getsockname: %@", [self errnoError]);
22442244
}
22452245
}
2246-
else if (socketFamily == AF_INET)
2246+
else if (socketFamily == AF_INET6)
22472247
{
22482248
struct sockaddr_in6 sockaddr6;
22492249
socklen_t sockaddr6len = sizeof(sockaddr6);

0 commit comments

Comments
 (0)