Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic
C ccybersecurityhttp3httpproxylinuxlinux-proxymacosmacos-appmacos-proxyproxifierproxifier-alternativeproxyclienttcpthick-clientudpwindivertwindows
#89 - Added Null datagram detection
AnoF-Cyber6db6cc053b47
diff --git a/MacOS/ProxyBridge/extension/AppProxyProvider.swift b/MacOS/ProxyBridge/extension/AppProxyProvider.swiftindex a7ec56a..dc5f3fb 100644--- a/MacOS/ProxyBridge/extension/AppProxyProvider.swift+++ b/MacOS/ProxyBridge/extension/AppProxyProvider.swift@@ -785,7 +785,14 @@ class AppProxyProvider: NETransparentProxyProvider {return}- guard let datagrams = datagrams, let endpoints = endpoints, !datagrams.isEmpty else {+ // empty datagrams with no error = flow closed cleanly+ guard let datagrams = datagrams, let endpoints = endpoints else {+ self.cleanupUDPFlow(clientFlow)+ return+ }++ // empty but non-nil = nothing arrived this read, keep going+ guard !datagrams.isEmpty else {self.readAndForwardClientUDP(clientFlow: clientFlow, udpSession: udpSession, processPath: processPath)return}