From c2de9971e9d5f1408083f0d131818e16430238d2 Mon Sep 17 00:00:00 2001 From: FChannel <> Date: Sat, 25 Jun 2022 11:33:24 -0700 Subject: removed public indexing being dependent on fchan being available --- util/proxy.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'util/proxy.go') diff --git a/util/proxy.go b/util/proxy.go index daa90b5..ed34a02 100644 --- a/util/proxy.go +++ b/util/proxy.go @@ -41,6 +41,8 @@ func MediaProxy(url string) string { func RouteProxy(req *http.Request) (*http.Response, error) { var proxyType = GetPathProxyType(req.URL.Host) + req.Header.Set("User-Agent", "FChannel/"+config.InstanceName) + if proxyType == "tor" { proxyUrl, err := url.Parse("socks5://" + config.TorProxy) -- cgit v1.2.3