From 61eada5d1e96e1ab8442bb152e617e91ad848bcd Mon Sep 17 00:00:00 2001 From: lixiangwuxian Date: Wed, 16 Apr 2025 00:28:47 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=BE=93=E5=87=BA=E4=BB=A5=E6=98=BE=E7=A4=BA=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=90=86=E7=B1=BB=E5=9E=8B=E5=92=8C=E5=9C=B0?= =?UTF-8?q?=E5=9D=80=EF=BC=8C=E6=8F=90=E5=8D=87=E8=B0=83=E8=AF=95=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E7=9A=84=E5=8F=AF=E8=AF=BB=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- handler/headmaster/headmaster.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/handler/headmaster/headmaster.go b/handler/headmaster/headmaster.go index 8ff7e76..8fffe78 100644 --- a/handler/headmaster/headmaster.go +++ b/handler/headmaster/headmaster.go @@ -60,6 +60,7 @@ func ask(from string, question string) (reply string) { log.Printf("解析代理地址失败: %v\n", err) } else { if proxyURL.Scheme == "socks5" { + log.Printf("使用SOCKS5代理: %s\n", proxyURL.Host) dialer, err := proxy.SOCKS5("tcp", proxyURL.Host, nil, proxy.Direct) if err == nil { llmConfig.HTTPClient = &http.Client{ @@ -74,7 +75,7 @@ func ask(from string, question string) (reply string) { log.Printf("创建SOCKS5代理失败: %v\n", err) } } else { - // 使用 HTTP/HTTPS 代理 + log.Printf("使用HTTP/HTTPS代理: %s\n", proxyURL.Host) llmConfig.HTTPClient = &http.Client{ Timeout: 10 * time.Second, Transport: &http.Transport{