From 5f182febae6ba3cb2941a4c602d2af871befc775 Mon Sep 17 00:00:00 2001 From: Quentin McGaw Date: Thu, 7 Nov 2024 20:18:29 +0000 Subject: [PATCH] fix(ipvanish): update openvpn zip file url for updater --- 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 096a12e4..fa0d29c8 100644 --- a/internal/provider/ipvanish/updater/servers.go +++ b/internal/provider/ipvanish/updater/servers.go @@ -16,7 +16,7 @@ import ( func (u *Updater) FetchServers(ctx context.Context, minServers int) ( servers []models.Server, err error, ) { - const url = "https://configs.ipvanish.com/configs/configs.zip" + const url = "https://configs.ipvanish.com/openvpn/v2.6.0-0/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 8a0cd6e7..d416a5fe 100644 --- a/internal/provider/ipvanish/updater/servers_test.go +++ b/internal/provider/ipvanish/updater/servers_test.go @@ -194,7 +194,7 @@ func Test_Updater_GetServers(t *testing.T) { ctx := context.Background() unzipper := common.NewMockUnzipper(ctrl) - const zipURL = "https://configs.ipvanish.com/configs/configs.zip" + const zipURL = "https://configs.ipvanish.com/openvpn/v2.6.0-0/configs.zip" unzipper.EXPECT().FetchAndExtract(ctx, zipURL). Return(testCase.unzipContents, testCase.unzipErr)