From 04dc573a751c44905ea178660c1e93adfe5226d9 Mon Sep 17 00:00:00 2001 From: Jonathan Diehl Date: Sun, 23 Oct 2016 13:13:22 +0200 Subject: [PATCH] Enabled IPv6 Support (see #11) --- AsyncNetwork/AsyncConnection.m | 2 +- AsyncNetwork/AsyncServer.m | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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:)]) {