support proxychains

This commit is contained in:
zhangkun9038@dingtalk.com 2025-02-19 17:58:59 +08:00
parent c5f79c07e2
commit 336effb281

View File

@ -164,6 +164,9 @@ func (this *RESTAPI) Run(ctx context.Context) (res *RESTAPIResult, err error) {
client := &http.Client{
Timeout: this.Timeout,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
},
}
uri, body, err := this.GenReqInfo()