Skip to content

Commit

Permalink
Wrong check URL fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ry-ry-ry authored Jan 23, 2022
1 parent beede4d commit 89feb1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Courvix-VPN/Forms/MainForm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private async void MainForm_Load(object sender, EventArgs e)
statuslbl.Text = Resources.Checking_For_OpenVPN;
CheckOpenVPN();
statuslbl.Text = Resources.Getting_Servers;
_servers = await _client.GetAsync<List<Server>>("https://courvix.com/vpn/server_list.json");
_servers = await _client.GetAsync<List<Server>>("https://api.courvix.com/vpn/servers");
_servers = _servers.OrderBy(x => x.CountryCode).ThenBy(x => x.ServerName).ToList();
serversCB.DataSource = _servers.Where(x => x.Enabled && !x.Down).Select(x => x.ServerName).ToArray();
}
Expand All @@ -122,7 +122,7 @@ private async void MainForm_Load(object sender, EventArgs e)

private async Task CheckVersion()
{
var clientversion = await _client.GetAsync<ClientVersion>("https://api.courvix.com/vpn/servers");
var clientversion = await _client.GetAsync<ClientVersion>("https://courvix.com/vpn/client_version.json");
if (clientversion.Version > Assembly.GetExecutingAssembly().GetName().Version)
{
if (MessageBox.Show(Resources.New_Version_Found, "Courvix VPN",
Expand Down

0 comments on commit 89feb1c

Please sign in to comment.