startVPNTunnelAndReturnError not starting the tunnel

I am writing Transparent app proxy on macOS and using startVPNTunnelAndReturnError .

the result of this API are rather inconsistent. sometime I am able to start the tunnel sometime it doesn't .
any race condition which I need to handle .

also I see during boot many times the tunnel is not started ?



the result of this API are rather inconsistent. sometime I am able to start the tunnel sometime it doesn't . any race condition which I need to handle .

Typically I would not expect a race condition to be present here. Is there any log or configuration information that would provide more insight on what the race condition is?


Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
startVPNTunnelAndReturnError not starting the tunnel
 
 
Q