最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

objective c - Getting connection details inside method handleNewUDPFlow for macOS network security - Stack Overflow

programmeradmin2浏览0评论

I'm using NETransparentProxyProvider to intercept udp sockets using the method handleNewUDPFlow. If an application create a UDP socket and set the DONTFRAG using setsockopt method

setsockopt(s, IPPROTO_IP, IP_DONTFRAG, &val, sizeof(val))

Do I have option in this case, to get the connection settings inside the callback

- (void)handleNewUDPFlow:(NEAppProxyUDPFlow *)flow initialRemoteEndpoint:(NWEndpoint *)remoteEndpoint;

So in this case, I would be able to create the outgoing socket with the exact same characteristics, after the original app socket got intercepted by my proxy provider ?

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论