Skip to content

Commit

Permalink
upgrade windivert
Browse files Browse the repository at this point in the history
  • Loading branch information
trudyhood committed Dec 26, 2022
1 parent a9fc4a5 commit f59f7d2
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Upcoming
### Client
* Update: Upgrade WinDiver to 2.2.2

### Server
* Update: Windows updater write its log

Expand Down
Binary file modified VpnHood.Client.Device.WinDivert/Resources/WinDivertLib.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion VpnHood.Client.Device.WinDivert/WinDivertPacketCapture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ public void Dispose()
private static void SetWinDivertDllFolder()
{
// I got sick trying to add it to nuget as a native library in (x86/x64) folder, OOF!
var tempLibFolder = Path.Combine(Path.GetTempPath(), "VpnHood-WinDivertDevice");
var tempLibFolder = Path.Combine(Path.GetTempPath(), "VpnHood-WinDivertDevice", "2.2.2");
var dllFolderPath = Environment.Is64BitOperatingSystem
? Path.Combine(tempLibFolder, "x64")
: Path.Combine(tempLibFolder, "x86");
Expand Down
2 changes: 1 addition & 1 deletion VpnHood.Server/Session.cs
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public void LogTrack(string protocol, int localPort, IPEndPoint destinationEndPo
var destinationPortStr = _trackingOptions.TrackDestinationPort ? destinationEndPoint.Port.ToString() : "*";

VhLogger.Instance.LogInformation(GeneralEventId.Track,
"Proto: {Proto}, SessionId: {SessionId}, Tcp: {TcpCount}, Udp: {UdpCount}, TcpWait: {TcpConnectWaitCount}, SrcPort: {SrcPort}, DstIp:{DstIp}, DstPort: {DstPort}",
"Proto: {Proto}, SessionId: {SessionId}, TcpCount: {TcpCount}, UdpCount: {UdpCount}, TcpWait: {TcpConnectWaitCount}, SrcPort: {SrcPort}, DstIp:{DstIp}, DstPort: {DstPort}",
protocol, SessionId, TcpChannelCount, _proxyManager.UsedUdpPortCount, TcpConnectWaitCount,
localPortStr, destinationIpStr, destinationPortStr);
}
Expand Down

0 comments on commit f59f7d2

Please sign in to comment.