Skip to content

Commit 935c792

Browse files
committed
1 parent 6a8fec8 commit 935c792

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios/TcpSocketClient.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ - (BOOL)listen:(NSString *)host port:(int)port error:(NSError **)error
123123

124124
// GCDAsyncSocket doesn't recognize 0.0.0.0
125125
if ([@"0.0.0.0" isEqualToString: host]) {
126-
host = @"localhost";
126+
host = nil;
127127
}
128128
BOOL isListening = [_tcpSocket acceptOnInterface:host port:port error:error];
129129
if (isListening == YES) {

0 commit comments

Comments
 (0)