Chore: Change default latency test url to HTTPS.

This commit is contained in:
Larvan2 2023-01-27 13:41:23 +08:00
parent 4629ecb8ee
commit f7538568c0
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
} else {
if groupOption.URL == "" {
groupOption.URL = "http://www.gstatic.com/generate_204"
groupOption.URL = "https://cp.cloudflare.com/generate_204"
}
if groupOption.Interval == 0 {

View file

@ -534,6 +534,8 @@ proxies:
private-key: eCtXsJZ27+4PbhDkHnB923tkUn2Gj59wZw5wFA75MnU=
public-key: Cr8hWlKvtDt7nrvf+f0brNQQzabAqrjfBvas9pmowjo=
udp: true
# reserved: 'U4An'
- name: tuic
server: www.example.com
@ -593,7 +595,7 @@ proxy-groups:
- vmess1
# tolerance: 150
# lazy: true
url: "http://www.gstatic.com/generate_204"
url: "https://cp.cloudflare.com/generate_204"
interval: 300
# fallback 将按照 url 测试结果按照节点顺序选择
@ -603,7 +605,7 @@ proxy-groups:
- ss1
- ss2
- vmess1
url: "http://www.gstatic.com/generate_204"
url: "https://cp.cloudflare.com/generate_204"
interval: 300
# load-balance 将按照算法随机选择节点
@ -613,7 +615,7 @@ proxy-groups:
- ss1
- ss2
- vmess1
url: "http://www.gstatic.com/generate_204"
url: "https://cp.cloudflare.com/generate_204"
interval: 300
# strategy: consistent-hashing # 可选 round-robin 和 sticky-sessions
@ -655,14 +657,14 @@ proxy-providers:
enable: true
interval: 600
# lazy: true
url: http://www.gstatic.com/generate_204
url: https://cp.cloudflare.com/generate_204
test:
type: file
path: /test.yaml
health-check:
enable: true
interval: 36000
url: http://www.gstatic.com/generate_204
url: https://cp.cloudflare.com/generate_204
rule-providers:
rule1:
behavior: classical # domain ipcidr