From f03f4187e05dcade3ed9ab648ee10b17d388fbd3 Mon Sep 17 00:00:00 2001 From: CaIon Date: Mon, 29 Sep 2025 14:02:15 +0800 Subject: [PATCH] fix(http_client): improve error message for unsupported proxy schemes --- service/http_client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/http_client.go b/service/http_client.go index d8fcfae0..c1d6880c 100644 --- a/service/http_client.go +++ b/service/http_client.go @@ -110,6 +110,6 @@ func NewProxyHttpClient(proxyURL string) (*http.Client, error) { return client, nil default: - return nil, fmt.Errorf("unsupported proxy scheme: %s", parsedURL.Scheme) + return nil, fmt.Errorf("unsupported proxy scheme: %s, must be http, https, socks5 or socks5h", parsedURL.Scheme) } }