summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorjwijenbergh <jeroenwijenbergh@protonmail.com>2024-02-19 14:06:17 +0100
committerJeroen Wijenbergh <46386452+jwijenbergh@users.noreply.github.com>2024-02-19 14:15:07 +0100
commit2fcca7427bc0efdecd33f497574bf2cbeafb8d2d (patch)
tree448e60d5d3c7bb26ef5c2a900f4771a3ff175ae6 /internal
parent3b83e6157ec32e8f4dbfa6f0e49f568c29e99167 (diff)
API: Switch back to wireguard+tcp instead of wireguard+proxy
Diffstat (limited to 'internal')
-rw-r--r--internal/api/api.go4
-rw-r--r--internal/api/profiles/profiles.go2
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" {