I am creating a network connection with NWConnection class.
let serverURL = URL(string: "ws://example.com")!
let connection = NWConnection(to: .url(serverURL)) , using: parameters!)
connection?.start(queue: .main)
let suppose we have three interface a system.
- en0
- utun0
- utun1
By default traffic for this connection will tunnel through en0
I wants that traffic for this connection should tunnel through utun1
how we can do this?
Thanks-: