Chore: Change default latency test url to HTTPS.
This commit is contained in:
parent
4629ecb8ee
commit
f7538568c0
2 changed files with 13 additions and 11 deletions
|
@ -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 {
|
||||
|
|
|
@ -110,7 +110,7 @@ sniffer:
|
|||
HTTP:
|
||||
# 需要嗅探的端口
|
||||
|
||||
ports: [80, 8080-8880]
|
||||
ports: [ 80, 8080-8880 ]
|
||||
# 可覆盖 sniffer.override-destination
|
||||
override-destination: true
|
||||
force-domain:
|
||||
|
@ -156,7 +156,7 @@ tunnels:
|
|||
- tcp/udp,127.0.0.1:6553,114.114.114.114:53,proxy
|
||||
- tcp,127.0.0.1:6666,rds.mysql.com:3306,vpn
|
||||
# full yaml config
|
||||
- network: [tcp, udp]
|
||||
- network: [ tcp, udp ]
|
||||
address: 127.0.0.1:7777
|
||||
target: target.com
|
||||
proxy: proxy
|
||||
|
@ -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
|
||||
|
@ -800,7 +802,7 @@ listeners:
|
|||
listen: 0.0.0.0
|
||||
# rule: sub-rule-name1 # 默认使用 rules,如果未找到 sub-rule 则直接使用 rules
|
||||
# proxy: proxy # 如果不为空则直接将该入站流量交由指定proxy处理(当proxy不为空时,这里的proxy名称必须合法,否则会出错)
|
||||
network: [tcp, udp]
|
||||
network: [ tcp, udp ]
|
||||
target: target.com
|
||||
|
||||
- name: tun-in-1
|
||||
|
|
Loading…
Reference in a new issue