setTunnelNetworkSettings outside startProxyWithOptions

On macOS Catalina for transparent app proxy, can setTunnelNetworkSettings be called outside the context of startProxyWithOptions:completionHandler: ?

or is it mandatory that this call be made only from startProxyWithOptions:completionHandler .

my use case is to change the tunnel network settings on some trigger .
You can call startProxyWithOptions:completionHandler: and then reconfigure your network settings and then call setTunnelNetworkSettings again at some point to reload the network configuration. Is that what you mean here?

Initially, on the start of the Transparent Proxy, you should configure your network settings and set them (setTunnelNetworkSettings), and then report back an optional error with the completionHandler. After that, the settings can be reloaded.


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
setTunnelNetworkSettings outside startProxyWithOptions
 
 
Q