Options dictionary is not nil when starting the tunnel via Connect On Demand

For the method:


func startTunnel(options: [String: NSObject]? = nil, completionHandler: @escaping (Error?) -> Void)


Docs say that the options dictionary should be nil whenever the tunnel is started via Connect On Demand. It turns out (iOS 12.2) that this is not true. I have following dictionary passed as an argument:


[
  "ServerAddress": /* */,
  "match-hostname": /* */,
  "AuthMethod": Password,
  "VendorData": {
     /* configuration */
  },
  "is-on-demand": 1
]


Is docs or my configuration wrong?

Replies

Just want to make sure the thread won't fall into the abyss.

Just want to make sure the thread won't fall into the abyss.

Indeed. Sorry I missed this earlier. I was out of the office for a few weeks.

Is docs or my configuration wrong?

This looks like a bug in the docs to me. Please file it accordingly.

Share and Enjoy

Quinn “The Eskimo!”
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"