chore(protonvpn): document to remove SERVER_NAMES

This commit is contained in:
Quentin McGaw
2022-06-12 01:58:46 +00:00
parent bda6707685
commit 1ea15a1a13
2 changed files with 3 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ ENV VPN_SERVICE_PROVIDER=pia \
OPENVPN_CLIENTKEY_SECRETFILE=/run/secrets/openvpn_clientkey \
# # Nordvpn only:
SERVER_NUMBER= \
# # PIA and ProtonVPN only:
# # PIA only:
SERVER_NAMES= \
# # ProtonVPN only:
FREE_ONLY= \

View File

@@ -35,6 +35,8 @@ func (u *Updater) FetchServers(ctx context.Context, minServers int) (
for _, logicalServer := range data.LogicalServers {
region := getStringValue(logicalServer.Region)
city := getStringValue(logicalServer.City)
// TODO v4 remove `name` field because of
// https://github.com/qdm12/gluetun/issues/1018#issuecomment-1151750179
name := logicalServer.Name
for _, physicalServer := range logicalServer.Servers {
if physicalServer.Status == 0 { // disabled so skip server