add support work over proxy HTTP/HTTPS/SOCKS (https://github.com/writefreely/writefreely/issues/947)

pull/948/head
iwojim0 9 months ago
parent 427f4980b9
commit 74ae63ab5a
  1. 5
      activitypub.go

@ -99,7 +99,10 @@ func (ru *RemoteUser) AsPerson() *activitystreams.Person {
func activityPubClient() *http.Client {
return &http.Client{
Timeout: 15 * time.Second,
Timeout: 120 * time.Second,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
},
}
}

Loading…
Cancel
Save