diff options
author | FChannel <> | 2022-06-25 11:33:24 -0700 |
---|---|---|
committer | FChannel <> | 2022-06-25 11:38:15 -0700 |
commit | c2de9971e9d5f1408083f0d131818e16430238d2 (patch) | |
tree | 0f1892d081039145d31d4ff4169106ba988ab7a7 /util/proxy.go | |
parent | b1d65922e257d605d3d95b6e679728524ba1e609 (diff) |
removed public indexing being dependent on fchan being available
Diffstat (limited to 'util/proxy.go')
-rw-r--r-- | util/proxy.go | 2 |
1 files changed, 2 insertions, 0 deletions
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) |