aboutsummaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
Diffstat (limited to 'util')
-rw-r--r--util/proxy.go2
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)