From 7578e52ed5367cfd192770db9a496da70c55c150 Mon Sep 17 00:00:00 2001 From: stevenl4 Date: Sat, 25 Mar 2023 10:36:44 -0400 Subject: [PATCH] fix(ipvanish): updater zip file url (#1449) --- internal/provider/ipvanish/updater/servers.go | 2 +- internal/provider/ipvanish/updater/servers_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/provider/ipvanish/updater/servers.go b/internal/provider/ipvanish/updater/servers.go index eb247a1d..3f5e8814 100644 --- a/internal/provider/ipvanish/updater/servers.go +++ b/internal/provider/ipvanish/updater/servers.go @@ -15,7 +15,7 @@ import ( func (u *Updater) FetchServers(ctx context.Context, minServers int) ( servers []models.Server, err error) { - const url = "https://www.ipvanish.com/software/configs/configs.zip" + const url = "https://configs.ipvanish.com/configs/configs.zip" contents, err := u.unzipper.FetchAndExtract(ctx, url) if err != nil { return nil, err diff --git a/internal/provider/ipvanish/updater/servers_test.go b/internal/provider/ipvanish/updater/servers_test.go index e7db6889..7a64c4fb 100644 --- a/internal/provider/ipvanish/updater/servers_test.go +++ b/internal/provider/ipvanish/updater/servers_test.go @@ -195,7 +195,7 @@ func Test_Updater_GetServers(t *testing.T) { ctx := context.Background() unzipper := common.NewMockUnzipper(ctrl) - const zipURL = "https://www.ipvanish.com/software/configs/configs.zip" + const zipURL = "https://configs.ipvanish.com/configs/configs.zip" unzipper.EXPECT().FetchAndExtract(ctx, zipURL). Return(testCase.unzipContents, testCase.unzipErr)