diff --git a/ios/TcpSocketClient.m b/ios/TcpSocketClient.m index 009e5af..d08dcab 100644 --- a/ios/TcpSocketClient.m +++ b/ios/TcpSocketClient.m @@ -123,7 +123,7 @@ - (BOOL)listen:(NSString *)host port:(int)port error:(NSError **)error // GCDAsyncSocket doesn't recognize 0.0.0.0 if ([@"0.0.0.0" isEqualToString: host]) { - host = @"localhost"; + host = nil; } BOOL isListening = [_tcpSocket acceptOnInterface:host port:port error:error]; if (isListening == YES) {