hotfix(protonvpn): drop P2P_ONLY in favor of PORT_FORWARD_ONLY

This commit is contained in:
Quentin McGaw
2024-07-31 14:29:31 +00:00
parent 13ffffb157
commit 5191f3558f
8 changed files with 1 additions and 45 deletions

View File

@@ -33,7 +33,6 @@ type Server struct {
Stream bool `json:"stream,omitempty"` // TODO v4 create a Features struct
SecureCore bool `json:"secure_core,omitempty"`
Tor bool `json:"tor,omitempty"`
P2P bool `json:"p2p,omitempty"`
PortForward bool `json:"port_forward,omitempty"`
Keep bool `json:"keep,omitempty"`
IPs []netip.Addr `json:"ips,omitempty"`

View File

@@ -62,7 +62,6 @@ func Test_Server_Equal(t *testing.T) {
Stream: true,
SecureCore: true,
Tor: true,
P2P: false,
PortForward: true,
IPs: []netip.Addr{netip.AddrFrom4([4]byte{1, 2, 3, 4})},
Keep: true,
@@ -87,7 +86,6 @@ func Test_Server_Equal(t *testing.T) {
Stream: true,
SecureCore: true,
Tor: true,
P2P: false,
PortForward: true,
IPs: []netip.Addr{netip.AddrFrom4([4]byte{1, 2, 3, 4})},
Keep: true,