hotfix(protonvpn): fix free detection and update p2p->port_forward

This commit is contained in:
Quentin McGaw
2024-07-31 21:04:05 +00:00
parent 4c3da54303
commit ceb6ff4ca4
3 changed files with 2077 additions and 3337 deletions

View File

@@ -24,6 +24,7 @@ type logicalServer struct {
City *string `json:"City"`
Servers []physicalServer `json:"Servers"`
Features uint16 `json:"Features"`
Tier *uint8 `json:"Tier,omitempty"`
}
type physicalServer struct {
@@ -31,7 +32,6 @@ type physicalServer struct {
ExitIP netip.Addr `json:"ExitIP"`
Domain string `json:"Domain"`
Status uint8 `json:"Status"`
Tier *uint8 `json:"Tier,omitempty"`
}
func fetchAPI(ctx context.Context, client *http.Client) (