add support work over proxy HTTP/HTTPS/SOCKS (https://github.com/writefreely/writefreely/issues/947)
This commit is contained in:
parent
427f4980b9
commit
74ae63ab5a
|
@ -99,7 +99,10 @@ func (ru *RemoteUser) AsPerson() *activitystreams.Person {
|
||||||
|
|
||||||
func activityPubClient() *http.Client {
|
func activityPubClient() *http.Client {
|
||||||
return &http.Client{
|
return &http.Client{
|
||||||
Timeout: 15 * time.Second,
|
Timeout: 120 * time.Second,
|
||||||
|
Transport: &http.Transport{
|
||||||
|
Proxy: http.ProxyFromEnvironment,
|
||||||
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue