meh / rust-tun

TUN device creation and handling.
343 stars 136 forks source link

ios15 #35

Open 50611 opened 3 years ago

50611 commented 3 years ago

self?.packetFlow.value(forKeyPath: "socket.fileDescriptor") as! Int32 in ios15 is not use

bipo123 commented 3 years ago

how to fix it??

EbrahimTahernejad commented 6 months ago

add this header: https://github.com/EbrahimTahernejad/Tun2SocksKit/blob/3036fab88eda42e04dfcf86318a94b9f83a72ab2/Sources/Tun2SocksKitC/Tun2SocksKitC.h

Then use this property to get the fd: https://github.com/EbrahimTahernejad/Tun2SocksKit/blob/3036fab88eda42e04dfcf86318a94b9f83a72ab2/Sources/Tun2SocksKit/Tunnel.swift#L7