fix(ipvanish): updater zip file url (#1449)

This commit is contained in:
stevenl4
2023-03-25 10:36:44 -04:00
committed by GitHub
parent 0df68f76d5
commit 7578e52ed5
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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)