'NetworkExtension+libCURL: Route traffic via tunnel

Is there any way to use libCURL from a Network-Extension (Packet Tunnel Provider), but to route the traffic (from libCURL) via the tunnel?

I've tried to use the 'CURLOPT_INTERFACE' option for libCURL, but I got the error "curl_easy_perform() failed: Couldn't connect to server"



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source