mirror of
https://github.com/MetaCubeX/mihomo.git
synced 2026-02-27 09:17:12 +00:00
chore: add GSO support for TUN
lwip had been dropped, also cgo build will be removed
This commit is contained in:
@@ -93,12 +93,14 @@ profile: # 存储 select 选择记录
|
||||
# Tun 配置
|
||||
tun:
|
||||
enable: false
|
||||
stack: system # gvisor / lwip
|
||||
stack: system # gvisor/mixed
|
||||
dns-hijack:
|
||||
- 0.0.0.0:53 # 需要劫持的 DNS
|
||||
# auto-detect-interface: true # 自动识别出口网卡
|
||||
# auto-route: true # 配置路由表
|
||||
# mtu: 9000 # 最大传输单元
|
||||
# gso: false # 启用通用分段卸载, 仅支持 Linux
|
||||
# gso-max-size: 65536 # 通用分段卸载包的最大大小
|
||||
# strict-route: true # 将所有连接路由到tun来防止泄漏,但你的设备将无法其他设备被访问
|
||||
inet4-route-address: # 启用 auto_route 时使用自定义路由而不是默认路由
|
||||
- 0.0.0.0/1
|
||||
@@ -107,6 +109,10 @@ tun:
|
||||
- "::/1"
|
||||
- "8000::/1"
|
||||
# endpoint-independent-nat: false # 启用独立于端点的 NAT
|
||||
# include_interface: # 限制被路由的接口。默认不限制, 与 `exclude_interface` 冲突
|
||||
# - "lan0"
|
||||
# exclude_interface: # 排除路由的接口, 与 `include_interface` 冲突
|
||||
# - "lan1"
|
||||
# include-uid: # UID 规则仅在 Linux 下被支持,并且需要 auto_route
|
||||
# - 0
|
||||
# include-uid-range: # 限制被路由的的用户范围
|
||||
|
||||
Reference in New Issue
Block a user