設定範例
config.yaml YAML
proxies: - name: tuic server: www.example.com port: 10443 type: tuic uuid: 00000000-0000-0000-0000-000000000001 password: PASSWORD_1 disable-sni: true reduce-rtt: true request-timeout: 8000 udp-relay-mode: native
欄位說明
tokenV4 必須TUIC V4 使用者識別;使用 V5 時不要寫這個欄位。
uuid / passwordV5 必須TUIC V5 的使用者唯一識別碼和密碼;使用 V4 時不要寫這兩個欄位。
ip可選用來覆蓋 server 的 DNS 解析結果,指定實際連線的 IP。
disable-sni可選TLS 握手時是否停用 SNI 擴充功能。
reduce-rtt可選啟用 QUIC 0-RTT 握手,能縮短建連時間,但存在一定重播攻擊風險。
udp-relay-mode可選UDP 資料封包中繼模式,可選 native/quic。
congestion-controller可選壅塞控制演算法,可選 cubic/new_reno/bbr。
fast-open / max-open-streams可選fast-open 可以進一步縮短建連時間;max-open-streams 限制最大並行流數量,太大可能影響效能。