diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2024-02-19 14:06:17 +0100 |
|---|---|---|
| committer | Jeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com> | 2024-02-19 14:15:07 +0100 |
| commit | 2fcca7427bc0efdecd33f497574bf2cbeafb8d2d (patch) | |
| tree | 448e60d5d3c7bb26ef5c2a900f4771a3ff175ae6 /internal/api/api.go | |
| parent | 3b83e6157ec32e8f4dbfa6f0e49f568c29e99167 (diff) | |
API: Switch back to wireguard+tcp instead of wireguard+proxy
Diffstat (limited to 'internal/api/api.go')
| -rw-r--r-- | internal/api/api.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/api/api.go b/internal/api/api.go index abcaf04..d611896 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -221,7 +221,7 @@ func protocolFromCT(ct string) (protocol.Protocol, error) { switch ct { case "application/x-wireguard-profile": return protocol.WireGuard, nil - case "application/x-wireguard+proxy-profile": + case "application/x-wireguard+tcp-profile": return protocol.WireGuardProxy, nil case "application/x-openvpn-profile": return protocol.OpenVPN, nil @@ -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+proxy-profile") + hdrs.Add("accept", "application/x-wireguard+tcp-profile") case protocol.OpenVPN: hdrs.Add("accept", "application/x-openvpn-profile") default: |
