In func handleNewTCPFlow(_ flow: NEAppProxyTCPFlow) we create a connection as:
let connection = NWConnection(to: flow.remoteEndpoint.nwEndpoint, using: .tcp)
When converting this to UDP, the NEAppProxyUDPFlow doesn't have a flow.remoteEndpoint so it's unclear to me where I should get this from. Presumably each datagram has a destination which defines which flow it belongs to.
Topic:
App & System Services
SubTopic:
Networking
Tags: