support proxychains
This commit is contained in:
parent
c5f79c07e2
commit
336effb281
@ -164,6 +164,9 @@ func (this *RESTAPI) Run(ctx context.Context) (res *RESTAPIResult, err error) {
|
|||||||
|
|
||||||
client := &http.Client{
|
client := &http.Client{
|
||||||
Timeout: this.Timeout,
|
Timeout: this.Timeout,
|
||||||
|
Transport: &http.Transport{
|
||||||
|
Proxy: http.ProxyFromEnvironment,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
uri, body, err := this.GenReqInfo()
|
uri, body, err := this.GenReqInfo()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user