Fix proxy-provider bypass: use ?provider=1 param instead of custom header

Custom header X-Proxy-Provider is not sent by ClashMi and other clients
that don't support header: in proxy-providers. URL query param works in
all clients universally.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Ivan Razin
2026-06-24 20:07:33 +03:00
co-authored by Claude Sonnet 4.6
parent b846756a6d
commit 482749c966
2 changed files with 4 additions and 7 deletions
+1 -4
View File
@@ -53,12 +53,9 @@ dns:
proxy-providers:
sub:
type: http
url: https://${DOMAIN}/${SUB_PATH}/${SUB_ID}
url: https://${DOMAIN}/${SUB_PATH}/${SUB_ID}?provider=1
path: ./proxy_providers/base64.yml
interval: 3600
header:
X-Proxy-Provider:
- "true"
health-check:
enable: true
url: https://www.gstatic.com/generate_204