diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-07-18 10:42:56 +0200 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-07-18 09:12:00 +0000 |
| commit | 1b257f6a26b52ca633f7c497295a4d3259e9c985 (patch) | |
| tree | f316678ceca3b785b8cd1dbb5acc74f57b0d901b | |
| parent | bba9adf769f0e846e4040796915e0803f2149536 (diff) | |
Proxy: Pass UserAgent
| -rw-r--r-- | client/proxy.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/client/proxy.go b/client/proxy.go index ed17c82..2a900e0 100644 --- a/client/proxy.go +++ b/client/proxy.go @@ -9,6 +9,7 @@ import ( "codeberg.org/eduVPN/proxyguard" "github.com/eduvpn/eduvpn-common/i18nerr" + httpw "github.com/eduvpn/eduvpn-common/internal/http" "github.com/eduvpn/eduvpn-common/internal/log" "github.com/eduvpn/eduvpn-common/types/cookie" ) @@ -110,7 +111,8 @@ func (c *Client) StartProxyguard(ck *cookie.Cookie, listen string, tcpsp int, pe } gotFD(fd, string(b)) }, - Ready: ready, + UserAgent: httpw.UserAgent, + Ready: ready, } c.proxy.NewClient(&proxyc) |
