From 2fcca7427bc0efdecd33f497574bf2cbeafb8d2d Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 19 Feb 2024 14:06:17 +0100 Subject: API: Switch back to wireguard+tcp instead of wireguard+proxy --- internal/api/api.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/api/api.go') 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: -- cgit v1.2.3