aboutsummaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorFChannel <>2021-10-09 11:23:58 -0700
committerFChannel <>2022-06-19 12:53:29 -0700
commit7d5e18f1d6c25c82440d2787f834a20d09a3f37c (patch)
tree41e87ac5ae7657d31b90c5618b269fd21f8d8d27 /main.go
parent799569934fa7b2b0cfd9c981c67f9c63506469d1 (diff)
fix for following tor instances
Diffstat (limited to 'main.go')
-rw-r--r--main.go4
1 files 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")