diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-14 13:32:06 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 655f96a173207d29e184fe15dab8b654d18a9d3c (patch) | |
| tree | bf06268b5b5445ef01fe2011e975ce0d8c678d2b | |
| parent | a8a34b271a09f378930d251c85e9c66069cb6f3e (diff) | |
API: Set accept header to application/x-wireguard+proxy-profile
| -rw-r--r-- | internal/api/api.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/api/api.go b/internal/api/api.go index b5c56d8..abcaf04 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -259,7 +259,7 @@ func (a *API) Connect(ctx context.Context, prof profiles.Profile, protos []proto pubkey := wgKey.PublicKey() uv.Set("public_key", pubkey.String()) hdrs.Add("accept", "application/x-wireguard-profile") - hdrs.Add("accept", "application/x-wireguard+tcp-profile") + hdrs.Add("accept", "application/x-wireguard+proxy-profile") case protocol.OpenVPN: hdrs.Add("accept", "application/x-openvpn-profile") default: |
