更新最新的Leaf 动态库

更新最新的Leaf 动态库
This commit is contained in:
Zeus
2023-12-05 10:27:28 +08:00
parent 88f34acb29
commit d7e5411282
21 changed files with 350 additions and 43 deletions
+2 -1
View File
@@ -7,7 +7,8 @@
import Foundation
import NetworkExtension
import LeafFFI
//import LeafFFI
import leaf
public enum LeafAdapterError: Error {
/// Failure to locate tunnel file descriptor.
@@ -1,6 +1,6 @@
import NetworkExtension
import LeafFFI
//import LeafFFI
import leaf
class PacketTunnelProvider: NEPacketTunnelProvider {
private lazy var adapter: LeafAdapater = {
+2 -1
View File
@@ -1,6 +1,7 @@
import Foundation
import NetworkExtension
import LeafFFI
//import LeafFFI
import leaf
extension NEVPNStatus: CustomStringConvertible {
public var description: String {
+2
View File
@@ -4,6 +4,8 @@ logoutput = {{leafLogFile}}
dns-server = 223.5.5.5, 114.114.114.114
tun-fd = {{tunFd}}
routing-domain-resolve = true
socks-interface = 127.0.0.1
socks-port = 1080
[Proxy]
Direct = direct