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 +``` 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 }