配置示例
config.yaml YAML
proxies: - name: trusttunnel type: trusttunnel server: 1.2.3.4 port: 443 username: username password: password health-check: true udp: true # quic: true # congestion-controller: bbr # max-connections: 8
基础字段
username/password 是认证信息,health-check 开启后台健康检查;TLS 相关字段(sni/alpn/skip-cert-verify 等)见TLS 字段。
QUIC 与连接复用
quic默认 false是否启用 QUIC 传输。
congestion-controller可选设置 QUIC 拥塞控制算法。
max-connections / min-streams / max-streams可选,三选一max-connections 限制最大连接数;min-streams 是打开新连接前,当前连接里要求的最小多路复用流数量;max-streams 是打开新连接前允许的最大流数量。三者互斥,按需选择一种复用策略即可。