feat(protonvpn): determine free status with tier value

This commit is contained in:
Quentin McGaw
2024-07-29 09:01:47 +00:00
parent 264480b659
commit 4c47b6f142
3 changed files with 735 additions and 33 deletions

View File

@@ -31,6 +31,7 @@ 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) (