diff options
| -rw-r--r-- | internal/api/api.go | 4 | ||||
| -rw-r--r-- | internal/api/profiles/profiles.go | 2 |
2 files changed, 3 insertions, 3 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: diff --git a/internal/api/profiles/profiles.go b/internal/api/profiles/profiles.go index 0151d8c..d31bbcc 100644 --- a/internal/api/profiles/profiles.go +++ b/internal/api/profiles/profiles.go @@ -80,7 +80,7 @@ func (p *Profile) ShouldFailover() bool { return p.HasOpenVPN() } for _, c := range p.VPNProtoTransportList { - if c == "wireguard+proxy" { + if c == "wireguard+tcp" { return true } if c == "openvpn+tcp" { |
