From f135f517cff4f654703d1d6dbcc4c5df3e5eb5b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=B4=9F?= Date: Wed, 3 Apr 2024 16:44:50 +0800 Subject: [PATCH] fix(netutil): Add proxy IP to send request --- netutil/http_test.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/netutil/http_test.go b/netutil/http_test.go index 8ec54034..b46d03a5 100644 --- a/netutil/http_test.go +++ b/netutil/http_test.go @@ -367,10 +367,11 @@ func TestProxy(t *testing.T) { config := &HttpClientConfig{ HandshakeTimeout: 20 * time.Second, ResponseTimeout: 40 * time.Second, - Proxy: &url.URL{ - Scheme: "http", - Host: "46.17.63.166:18888", - }, + // Use the proxy ip to add it here + //Proxy: &url.URL{ + // Scheme: "http", + // Host: "46.17.63.166:18888", + //}, } httpClient := NewHttpClientWithConfig(config) resp, err := httpClient.Get("https://www.ipplus360.com/getLocation")