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

@ -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