fix(ipvanish): updater zip file url (#1449)
This commit is contained in:
@@ -15,7 +15,7 @@ import (
|
|||||||
|
|
||||||
func (u *Updater) FetchServers(ctx context.Context, minServers int) (
|
func (u *Updater) FetchServers(ctx context.Context, minServers int) (
|
||||||
servers []models.Server, err error) {
|
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)
|
contents, err := u.unzipper.FetchAndExtract(ctx, url)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
|
|||||||
@@ -195,7 +195,7 @@ func Test_Updater_GetServers(t *testing.T) {
|
|||||||
ctx := context.Background()
|
ctx := context.Background()
|
||||||
|
|
||||||
unzipper := common.NewMockUnzipper(ctrl)
|
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).
|
unzipper.EXPECT().FetchAndExtract(ctx, zipURL).
|
||||||
Return(testCase.unzipContents, testCase.unzipErr)
|
Return(testCase.unzipContents, testCase.unzipErr)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user