swiftkube / client

Swift client for Kubernetes
Apache License 2.0
129 stars 20 forks source link

'No route to host' on iOS16 when connect to lan kube cluster #21

Closed buhe closed 1 year ago

buhe commented 1 year ago

Hey, awesome project!

'No route to host' on iOS16 when connect to lan kube cluster

What i miss? I add Privacy - Local Network Usage Description on my info, but already crash at real device.

BTW, simulator is good.

buhe commented 1 year ago

Ok, this is china special bug. Workaround method: Access any publish net, tigger access network dialog(china special)

fileprivate func workaroundChinaSpecialBug() {
        let url = URL(string: "https://www.baidu.com")!

        let task = URLSession.shared.dataTask(with: url) {(data, response, error) in
            guard let data = data else { return }
            print(String(data: data, encoding: .utf8)!)
        }

        task.resume()
    }