From 0065d3889337a492bece4d5fe4825f7862a35f6a Mon Sep 17 00:00:00 2001 From: Mmx233 Date: Sun, 17 Sep 2023 23:23:38 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20NoDirect=20HttpClient=20=E6=B5=85?= =?UTF-8?q?=E6=8B=B7=E8=B4=9D=E9=80=BB=E8=BE=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/srun/api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/srun/api.go b/pkg/srun/api.go index 0e90193..05afa4f 100644 --- a/pkg/srun/api.go +++ b/pkg/srun/api.go @@ -28,7 +28,8 @@ func (a *Api) Init(https bool, domain string, client *http.Client) { // 初始化 http client a.Client = client - a.NoDirect = &(*client) + copyClient := *client + a.NoDirect = ©Client a.NoDirect.CheckRedirect = func(_ *http.Request, _ []*http.Request) error { return http.ErrUseLastResponse } From 129905b0f5edf563bbfd55e01df17017dedca664 Mon Sep 17 00:00:00 2001 From: Lvc Revincx Date: Fri, 29 Sep 2023 10:49:21 +0800 Subject: [PATCH 2/2] =?UTF-8?q?docs:=20=E6=9B=B4=E6=AD=A3=20readme=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cbd3741..09a16f9 100644 --- a/README.md +++ b/README.md @@ -57,8 +57,8 @@ settings: log: debug_level: false #打印调试日志 write_file: false #写日志文件 - log_path: ./ #日志文件存放目录路径 - log_name: "" #指定日志文件名 + file_path: ./ #日志文件存放目录路径 + file_name: "" #指定日志文件名 ddns: #校园网内网 ip ddns enable: false domain: www.example.com @@ -203,4 +203,4 @@ func main() { } } } -``` \ No newline at end of file +```