diff --git a/AsyncNetwork/AsyncConnection.m b/AsyncNetwork/AsyncConnection.m index b96ed36..d853197 100644 --- a/AsyncNetwork/AsyncConnection.m +++ b/AsyncNetwork/AsyncConnection.m @@ -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; diff --git a/AsyncNetwork/AsyncServer.m b/AsyncNetwork/AsyncServer.m index 0536b7c..04b23cd 100644 --- a/AsyncNetwork/AsyncServer.m +++ b/AsyncNetwork/AsyncServer.m @@ -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:)]) {