From 9c848e6cbb3ee5881fd4d894608d8556b2201084 Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Mon, 12 Feb 2024 19:45:27 +0100 Subject: WireGuard: Latest proxyguard server API changes wireguard+proxy profile and ProxyEndpoint instead of TCPEndpoint as proxyguard now uses HTTP for the initial packet --- internal/api/api.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/api') diff --git a/internal/api/api.go b/internal/api/api.go index 2268357..b5c56d8 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -221,8 +221,8 @@ func protocolFromCT(ct string) (protocol.Protocol, error) { switch ct { case "application/x-wireguard-profile": return protocol.WireGuard, nil - case "application/x-wireguard+tcp-profile": - return protocol.WireGuardTCP, nil + case "application/x-wireguard+proxy-profile": + return protocol.WireGuardProxy, nil case "application/x-openvpn-profile": return protocol.OpenVPN, nil } @@ -301,7 +301,7 @@ func (a *API) Connect(ctx context.Context, prof profiles.Profile, protos []proto }, nil } - vpnCfg, proxy, err := wireguard.Config(vpnCfg, wgKey, proto == protocol.WireGuardTCP) + vpnCfg, proxy, err := wireguard.Config(vpnCfg, wgKey, proto == protocol.WireGuardProxy) if err != nil { return nil, err } -- cgit v1.2.3