Skip to content

Commit

Permalink
Enabled IPv6 Support (see #11)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdiehl committed Oct 23, 2016
1 parent 4a7c9ed commit 04dc573
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion AsyncNetwork/AsyncConnection.m
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ - (void)start;

// create the socket
_socket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:AsyncNetworkDispatchQueue()];
[self.socket setIPv6Enabled:NO];
[self.socket setIPv6Enabled:YES];

// connect to host and port
NSError *error;
Expand Down
2 changes: 1 addition & 1 deletion AsyncNetwork/AsyncServer.m
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ - (void)setupListenSocket;

// set up listening socket
_listenSocket = [[GCDAsyncSocket alloc] initWithDelegate:self delegateQueue:AsyncNetworkDispatchQueue()];
[self.listenSocket setIPv6Enabled:NO];
[self.listenSocket setIPv6Enabled:YES];
NSError *error;
if (![self.listenSocket acceptOnPort:self.port error:&error]) {
if ([self.delegate respondsToSelector:@selector(server:didFailWithError:)]) {
Expand Down

0 comments on commit 04dc573

Please sign in to comment.