From 7d5e18f1d6c25c82440d2787f834a20d09a3f37c Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 9 Oct 2021 11:23:58 -0700 Subject: fix for following tor instances --- main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.go b/main.go index bba9e0f..157ed78 100644 --- a/main.go +++ b/main.go @@ -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") -- cgit v1.2.3