Closed litt1e-p closed 5 years ago
ver: 1.1.7 works well, but it got an error when I start proxy server after update the pod
the error seems occured in CocoaAsyncSocket and file: GCDAsyncSocket.m line 1803:
// Bind socket
status = bind(socketFD, (const struct sockaddr *)[interfaceAddr bytes], (socklen_t)[interfaceAddr length]);
if (status == -1)
{
NSString *reason = @"Error in bind() function";
err = [self errnoErrorWithReason:reason];
LogVerbose(@"close(socketFD)");
close(socketFD);
return SOCKET_NULL;
}
fixed with change the port of the server:
[self.server setPort:8088];
env: Xcode10.1, Swift4.2, KTVHTTPCache 2.0.0