diff options
author | FChannel <> | 2021-10-09 11:23:58 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-19 12:53:29 -0700 |
commit | 7d5e18f1d6c25c82440d2787f834a20d09a3f37c (patch) | |
tree | 41e87ac5ae7657d31b90c5618b269fd21f8d8d27 | |
parent | 799569934fa7b2b0cfd9c981c67f9c63506469d1 (diff) |
fix for following tor instances
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -2605,7 +2605,7 @@ func RouteProxy(req *http.Request) (*http.Response, error) { CheckError(err, "error parsing tor proxy url") proxyTransport := &http.Transport{Proxy: http.ProxyURL(proxyUrl)} - client := &http.Client{Transport: proxyTransport, Timeout: time.Second * 10} + client := &http.Client{Transport: proxyTransport, Timeout: time.Second * 15} return client.Do(req) } @@ -2815,7 +2815,7 @@ func GetCollectionFromReq(path string) Collection { req.Header.Set("Accept", activitystreams) - resp, err := http.DefaultClient.Do(req) + resp, err := RouteProxy(req) CheckError(err, "error getting resp from collection req") |