Chore: Change default latency test url to HTTPS.

This commit is contained in:
gVisor bot 2023-01-27 13:41:23 +08:00
parent c21dfb66cd
commit dc0f68ffd4
2 changed files with 13 additions and 11 deletions

View file

@ -78,7 +78,7 @@ func ParseProxyGroup(config map[string]any, proxyMap map[string]C.Proxy, provide
providersMap[groupName] = pd providersMap[groupName] = pd
} else { } else {
if groupOption.URL == "" { if groupOption.URL == "" {
groupOption.URL = "http://www.gstatic.com/generate_204" groupOption.URL = "https://cp.cloudflare.com/generate_204"
} }
if groupOption.Interval == 0 { if groupOption.Interval == 0 {

View file

@ -110,7 +110,7 @@ sniffer:
HTTP: HTTP:
# 需要嗅探的端口 # 需要嗅探的端口
ports: [80, 8080-8880] ports: [ 80, 8080-8880 ]
# 可覆盖 sniffer.override-destination # 可覆盖 sniffer.override-destination
override-destination: true override-destination: true
force-domain: force-domain:
@ -156,7 +156,7 @@ tunnels:
- tcp/udp,127.0.0.1:6553,114.114.114.114:53,proxy - tcp/udp,127.0.0.1:6553,114.114.114.114:53,proxy
- tcp,127.0.0.1:6666,rds.mysql.com:3306,vpn - tcp,127.0.0.1:6666,rds.mysql.com:3306,vpn
# full yaml config # full yaml config
- network: [tcp, udp] - network: [ tcp, udp ]
address: 127.0.0.1:7777 address: 127.0.0.1:7777
target: target.com target: target.com
proxy: proxy proxy: proxy
@ -257,8 +257,8 @@ proxies:
password: password:
"password" "password"
# udp: true # udp: true
# udp-over-tcp: false # udp-over-tcp: false
# ip-version: ipv4 # 设置节点使用 IP 版本可选dualipv4ipv6ipv4-preferipv6-prefer。默认使用 dual # ip-version: ipv4 # 设置节点使用 IP 版本可选dualipv4ipv6ipv4-preferipv6-prefer。默认使用 dual
# ipv4仅使用 IPv4 ipv6仅使用 IPv6 # ipv4仅使用 IPv4 ipv6仅使用 IPv6
# ipv4-prefer优先使用 IPv4 对于 TCP 会进行双栈解析,并发链接但是优先使用 IPv4 链接, # ipv4-prefer优先使用 IPv4 对于 TCP 会进行双栈解析,并发链接但是优先使用 IPv4 链接,
# UDP 则为双栈解析,获取结果中的第一个 IPv4 # UDP 则为双栈解析,获取结果中的第一个 IPv4
@ -534,6 +534,8 @@ proxies:
private-key: eCtXsJZ27+4PbhDkHnB923tkUn2Gj59wZw5wFA75MnU= private-key: eCtXsJZ27+4PbhDkHnB923tkUn2Gj59wZw5wFA75MnU=
public-key: Cr8hWlKvtDt7nrvf+f0brNQQzabAqrjfBvas9pmowjo= public-key: Cr8hWlKvtDt7nrvf+f0brNQQzabAqrjfBvas9pmowjo=
udp: true udp: true
# reserved: 'U4An'
- name: tuic - name: tuic
server: www.example.com server: www.example.com
@ -593,7 +595,7 @@ proxy-groups:
- vmess1 - vmess1
# tolerance: 150 # tolerance: 150
# lazy: true # lazy: true
url: "http://www.gstatic.com/generate_204" url: "https://cp.cloudflare.com/generate_204"
interval: 300 interval: 300
# fallback 将按照 url 测试结果按照节点顺序选择 # fallback 将按照 url 测试结果按照节点顺序选择
@ -603,7 +605,7 @@ proxy-groups:
- ss1 - ss1
- ss2 - ss2
- vmess1 - vmess1
url: "http://www.gstatic.com/generate_204" url: "https://cp.cloudflare.com/generate_204"
interval: 300 interval: 300
# load-balance 将按照算法随机选择节点 # load-balance 将按照算法随机选择节点
@ -613,7 +615,7 @@ proxy-groups:
- ss1 - ss1
- ss2 - ss2
- vmess1 - vmess1
url: "http://www.gstatic.com/generate_204" url: "https://cp.cloudflare.com/generate_204"
interval: 300 interval: 300
# strategy: consistent-hashing # 可选 round-robin 和 sticky-sessions # strategy: consistent-hashing # 可选 round-robin 和 sticky-sessions
@ -655,14 +657,14 @@ proxy-providers:
enable: true enable: true
interval: 600 interval: 600
# lazy: true # lazy: true
url: http://www.gstatic.com/generate_204 url: https://cp.cloudflare.com/generate_204
test: test:
type: file type: file
path: /test.yaml path: /test.yaml
health-check: health-check:
enable: true enable: true
interval: 36000 interval: 36000
url: http://www.gstatic.com/generate_204 url: https://cp.cloudflare.com/generate_204
rule-providers: rule-providers:
rule1: rule1:
behavior: classical # domain ipcidr behavior: classical # domain ipcidr
@ -800,7 +802,7 @@ listeners:
listen: 0.0.0.0 listen: 0.0.0.0
# rule: sub-rule-name1 # 默认使用 rules如果未找到 sub-rule 则直接使用 rules # rule: sub-rule-name1 # 默认使用 rules如果未找到 sub-rule 则直接使用 rules
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时这里的proxy名称必须合法否则会出错) # proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时这里的proxy名称必须合法否则会出错)
network: [tcp, udp] network: [ tcp, udp ]
target: target.com target: target.com
- name: tun-in-1 - name: tun-in-1