Swiftpack.co - daemooon/Tun2SocksKit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by daemooon.
daemooon/Tun2SocksKit 2.2.1
Tun2Socks framework repository
⭐️ 9
🕓 1 week ago
iOS macOS
.package(url: "https://github.com/daemooon/Tun2SocksKit.git", from: "2.2.1")

Tun2SocksKit

⚠️⚠️⚠️不保证每个版本都可用,请自行Fork发布⚠️⚠️⚠️

重要变更

2.2.1 开始,支持macOS(arm64、x86_64)

2.2.0 开始,支持macOS(arm64、x86_64)

2.1.16 开始,支持iPhone模拟器,hev-socks5-tunnel-iphonesimulator实现

2.1.10 开始,支持arm64的模拟器架构

2.0.1 开始,使用hev-socks5-tunnel替换leaf实现

使用

import Tun2SocksKit

Socks5Tunnel.run(withFileDescriptor: 4, configFilePath: localConfigFileURL.path(percentEncoded: false))

配置文件(详见hev-socks5-tunnel

tunnel:
  mtu: 9000

socks5:
  port: 7890
  address: ::1
  udp: 'udp'

misc:
  task-stack-size: 20480
  connect-timeout: 5000
  read-write-timeout: 60000
  log-file: stderr
  log-level: debug
  limit-nofile: 65535

GitHub

link
Stars: 9
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

2.2.1
1 week ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics