Skip to content

urltest ​

优先使用最快成员;当前成员仍在容差内时不切换。

yaml
outbounds:
  direct:
    type: direct
  proxy:
    type: socks
    server: proxy.example:1080
  fastest:
    type: urltest
    outbounds: [proxy, direct]
    interval: 3m
    tolerance: 50

route:
  final: fastest

dns:
  servers:
    default: {type: udp, address: 127.0.0.1:53}
  final: default

字段 ​

type ​

  • 类型:字符串。
  • 必填:是,第一项。
  • 取值:urltest。

tolerance ​

  • 类型:非负整数,单位毫秒。
  • 默认:50。
  • 行为:另一个成员至少快这么多时才切换。

说明 ​

其余成员和探测字段见公共分组字段;默认每 3m 探测一次。

相关 ​

页面历史

开发者设计、代码地图和验证记录保留在仓库 manual/。