Version: MacOS 12.1
When I was using NETransparentProxyProvider, I overrive handleNewFlow, handleNewUDPFlow , and return true
for some process, and then call
- (void)openWithLocalEndpoint:(NWHostEndpoint *)localEndpoint
completionHandler:(void (^)(NSError *error))completionHandler;
at the beginning, work fine, buy sometime, when I visited qiye.163.com
website, I often got an error when I do code below:
- (void)writeData:(NSData *)data withCompletionHandler:(void (^)(NSError *error))completionHandler;
Error Domain=NEAppProxyFlowErrorDomain Code=1 "The operation could not be completed because the flow is not connected" UserInfo={NSLocalizedDescription=The operation could not be completed because the flow is not connected
, and the whole computer could not access the Internet , handleNewFlow and handleNewUDPFlow both are no longer called, unless I turn off the VPN.
Turn off VPN and then Internet can be access