Skip to content

Commit

Permalink
fix(ipvanish): update openvpn zip file url for updater
Browse files Browse the repository at this point in the history
  • Loading branch information
qdm12 committed Nov 7, 2024
1 parent 86d82c1 commit 5f182fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/provider/ipvanish/updater/servers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion internal/provider/ipvanish/updater/servers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 5f182fe

Please sign in to comment.