lestar348 / Tun2SocksKit

Fork https://github.com/EbrahimTahernejad/Tun2SocksKit
2 stars 3 forks source link

completionHandler 不执行 #1

Open 800sea opened 11 months ago

800sea commented 11 months ago

Socks5Tunnel.run(withConfig: localConfigFileURL.path(percentEncoded: false), completionHandler: {code in NSLog("HEV_SOCKS5_TUNNEL_MAIN: (code)")})执行后 completionHandler: {code in NSLog("HEV_SOCKS5_TUNNEL_MAIN: (code)")}一直没有返回状态码,有谁知道是怎么一回事吗?

lestar348 commented 11 months ago

completionHandler calls when tunnel close (or if close with error), so if you didn't see anything in you console, tunnel work fine