Hello!
Is it possible to read Per App VPN config from a managed app and manually send request to the proxy app on iOS?
I'm working on a cross-platform app which uses socket to do the networking. It handles proxy itself by reading
CFNetworkCopySystemSettings()
However, since Per-App VPN is not applied system wide, the available keys for iOS in 'Global Proxy Settings Constants' aren't present in the return value. As a result the app ignores the Per App VPN and sent requests directly.
By printing out the return value, I saw a hidden __SCOPED__
key, it seems when a proxy is running, other than eth0
, there will be another interface like utun2
listed there. Can I use that to read Per App VPN config?