Skip to content

Commit 3bfedb3

Browse files
author
Mindaugas Veblauskas
committed
Merge branch 'release/3.5.0'
2 parents e3f5049 + d444da4 commit 3bfedb3

File tree

70 files changed

+524
-696
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+524
-696
lines changed

Setup/Native/arm64/ProtonVPN.CalloutDriver.inf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Class = WFPCALLOUTS
88
ClassGuid = {57465043-616C-6C6F-7574-5F636C617373}
99
Provider = %ManufacturerName%
1010
CatalogFile = ProtonVPN.CalloutDriver.cat
11-
DriverVer = 08/19/2024,15.41.59.712
11+
DriverVer = 11/19/2024,7.43.45.10
12+
PnpLockdown = 1
1213

1314
[SourceDisksNames]
1415
1 = %DiskName%,,,""
@@ -26,7 +27,7 @@ CopyFiles = ProtonVPN.CalloutDriver.Files
2627

2728
[DefaultUninstall.NTARM64]
2829
LegacyUninstall = 1
29-
DelFiles = ProtonVPN.CalloutDriver.Files
30+
;DelFiles = ProtonVPN.CalloutDriver.Files
3031

3132
[DefaultInstall.NTARM64.Services]
3233
AddService = %ServiceName%,,ProtonVPN.CalloutDriver.Service
4.02 KB
Binary file not shown.
38 Bytes
Binary file not shown.

Setup/Native/x64/ProtonVPN.CalloutDriver.inf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Class = WFPCALLOUTS
88
ClassGuid = {57465043-616C-6C6F-7574-5F636C617373}
99
Provider = %ManufacturerName%
1010
CatalogFile = ProtonVPN.CalloutDriver.cat
11-
DriverVer = 01/26/2021,18.36.11.107
11+
DriverVer = 11/19/2024,11.46.44.670
12+
PnpLockdown = 1
1213

1314
[SourceDisksNames]
1415
1 = %DiskName%,,,""
@@ -26,7 +27,7 @@ CopyFiles = ProtonVPN.CalloutDriver.Files
2627

2728
[DefaultUninstall.NTamd64]
2829
LegacyUninstall = 1
29-
DelFiles = ProtonVPN.CalloutDriver.Files
30+
;DelFiles = ProtonVPN.CalloutDriver.Files
3031

3132
[DefaultInstall.NTamd64.Services]
3233
AddService = %ServiceName%,,ProtonVPN.CalloutDriver.Service
2.53 KB
Binary file not shown.
-8.03 KB
Binary file not shown.

Setup/SetupBase.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,7 @@ var
602602
begin
603603
SetSilentModes();
604604
SetIsToDisableAutoUpdate();
605-
if IsWindowsVersionEqualOrHigher(10, 0, 17763) = False then begin
605+
if IsWindowsVersionEqualOrHigher(10, 0, 19041) = False then begin
606606
if WizardSilent() = false then begin
607607
MsgBox('This application does not support your Windows version. You will be redirected to a download page with an application suitable for your Windows version. ', mbInformation, MB_OK);
608608
ShellExec('open', 'https://protonvpn.com/free-vpn/windows/windows7', '', '', SW_SHOW, ewNoWait, ErrCode);

src/Api/ProtonVPN.Api.Contracts/IApiClient.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,13 @@ public interface IApiClient : IClientBase
4545
Task<ApiResponseResult<PhysicalServerWrapperResponse>> GetServerAsync(string serverId);
4646
Task<ApiResponseResult<VpnInfoWrapperResponse>> GetVpnInfoResponse();
4747
Task<ApiResponseResult<BaseResponse>> GetLogoutResponse();
48-
Task<ApiResponseResult<ServersResponse>> GetServersAsync(string ip);
48+
Task<ApiResponseResult<ServersResponse>> GetServersAsync(string countryCode, string ip);
4949
Task<ApiResponseResult<ReportAnIssueFormResponse>> GetReportAnIssueFormData();
50-
Task<ApiResponseResult<ServersResponse>> GetServerLoadsAsync(string ip);
50+
Task<ApiResponseResult<ServersResponse>> GetServerLoadsAsync(string countryCode, string ip);
5151
Task<ApiResponseResult<UserLocationResponse>> GetLocationDataAsync();
5252
Task<ApiResponseResult<BaseResponse>> ReportBugAsync(IEnumerable<KeyValuePair<string, string>> fields, IEnumerable<File> files);
5353
Task<ApiResponseResult<SessionsResponse>> GetSessions();
54-
Task<ApiResponseResult<VpnConfigResponse>> GetVpnConfig(string country, string ip);
54+
Task<ApiResponseResult<VpnConfigResponse>> GetVpnConfig(string countryCode, string ip);
5555
Task<ApiResponseResult<AnnouncementsResponse>> GetAnnouncementsAsync(AnnouncementsRequest request);
5656
Task<ApiResponseResult<StreamingServicesResponse>> GetStreamingServicesAsync();
5757
Task<ApiResponseResult<BaseResponse>> CheckAuthenticationServerStatusAsync();

src/ProtonVPN.Vpn/Networks/INetworkAdapterManager.cs renamed to src/Api/ProtonVPN.Api.Contracts/Servers/EntryPerProtocolEntryResponse.cs

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023 Proton AG
2+
* Copyright (c) 2024 Proton AG
33
*
44
* This file is part of ProtonVPN.
55
*
@@ -17,11 +17,13 @@
1717
* along with ProtonVPN. If not, see <https://www.gnu.org/licenses/>.
1818
*/
1919

20-
namespace ProtonVPN.Vpn.Networks
20+
using Newtonsoft.Json;
21+
22+
namespace ProtonVPN.Api.Contracts.Servers
2123
{
22-
public interface INetworkAdapterManager
24+
public class EntryPerProtocolEntryResponse
2325
{
24-
int DisableDuplicatedWireGuardAdapters();
25-
int EnableOpenVpnAdapters();
26+
[JsonProperty("IPv4")]
27+
public string Ipv4 { get; set; }
2628
}
27-
}
29+
}

src/ProtonVPN.Vpn/Networks/Adapters/NetworkAdaptersLoader.cs renamed to src/Api/ProtonVPN.Api.Contracts/Servers/EntryPerProtocolResponse.cs

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2023 Proton AG
2+
* Copyright (c) 2024 Proton AG
33
*
44
* This file is part of ProtonVPN.
55
*
@@ -17,24 +17,25 @@
1717
* along with ProtonVPN. If not, see <https://www.gnu.org/licenses/>.
1818
*/
1919

20-
using System.Collections.Generic;
21-
using System.Management;
20+
using Newtonsoft.Json;
2221

23-
namespace ProtonVPN.Vpn.Networks.Adapters
22+
namespace ProtonVPN.Api.Contracts.Servers
2423
{
25-
public class NetworkAdaptersLoader : INetworkAdaptersLoader
24+
public class EntryPerProtocolResponse
2625
{
27-
public IList<INetworkAdapter> GetAll()
28-
{
29-
SelectQuery query = new("Win32_NetworkAdapter");
30-
ManagementObjectSearcher search = new(query);
31-
IList<INetworkAdapter> networkAdapters = new List<INetworkAdapter>();
32-
foreach (ManagementObject result in search.Get())
33-
{
34-
networkAdapters.Add(new NetworkAdapter(result));
35-
}
26+
[JsonProperty("WireGuardUDP")]
27+
public EntryPerProtocolEntryResponse WireGuardUdp { get; set; }
3628

37-
return networkAdapters;
38-
}
29+
[JsonProperty("WireGuardTCP")]
30+
public EntryPerProtocolEntryResponse WireGuardTcp { get; set; }
31+
32+
[JsonProperty("WireGuardTLS")]
33+
public EntryPerProtocolEntryResponse WireGuardTls { get; set; }
34+
35+
[JsonProperty("OpenVPNUDP")]
36+
public EntryPerProtocolEntryResponse OpenVpnUdp { get; set; }
37+
38+
[JsonProperty("OpenVPNTCP")]
39+
public EntryPerProtocolEntryResponse OpenVpnTcp { get; set; }
3940
}
40-
}
41+
}

0 commit comments

Comments
 (0)