Skip to content

Commit c498151

Browse files
committed
Fixing a typo that caused trouble for ipv6 udp
A typo in if statement that I changed prevented ipv6 udp sockets from updating after binding. Leaving host, port etc empty.
1 parent 5cf7bac commit c498151

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
@@ -2265,7 +2265,7 @@ - (BOOL)getLocalAddress:(NSData **)dataPtr
22652265
LogWarn(@"Error in getsockname: %@", [self errnoError]);
22662266
}
22672267
}
2268-
else if (socketFamily == AF_INET)
2268+
else if (socketFamily == AF_INET6)
22692269
{
22702270
struct sockaddr_in6 sockaddr6;
22712271
socklen_t sockaddr6len = sizeof(sockaddr6);

0 commit comments

Comments
 (0)