Skip to content

Commit

Permalink
Merge pull request #64 from micahmo/release/v2.0.3
Browse files Browse the repository at this point in the history
Release/v2.0.3
  • Loading branch information
micahmo authored Oct 31, 2022
2 parents 17b6bc2 + e822ed5 commit 1dcfbd0
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
6 changes: 3 additions & 3 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<Project>
<PropertyGroup>
<!-- Keep in sync with WS4WSetupScript.iss and VersionInfo.xml -->
<AssemblyVersion>2.0.2.0</AssemblyVersion>
<FileVersion>2.0.2.0</FileVersion>
<InformationalVersion>2.0.2.0</InformationalVersion>
<AssemblyVersion>2.0.3.0</AssemblyVersion>
<FileVersion>2.0.3.0</FileVersion>
<InformationalVersion>2.0.3.0</InformationalVersion>
<Authors>Micah Morrison</Authors>
<Product>WS4W</Product>
</PropertyGroup>
Expand Down
2 changes: 1 addition & 1 deletion Installer/WS4WSetupScript.iss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#define MyAppNameOld "WireGuard Server For Windows"
#define MyAppName "Wg Server for Windows"
#define MyAppVersion "2.0.2"
#define MyAppVersion "2.0.3"
#define MyAppPublisher "Micah Morrison"
#define MyAppURL "https://github.com/micahmo/WgServerforWindows"
#define MyAppExeName "WgServerforWindows.exe"
Expand Down
14 changes: 13 additions & 1 deletion WgServerforWindows/Models/NewNetNatPrerequisite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,21 @@ public bool IsSupported
{
new WireGuardExe().ExecuteCommand(new WireGuardCommand(string.Empty, WhichExe.Custom,
"powershell.exe",
"-NoProfile Get-Help New-NetNat -Parameter InternalIPInterfaceAddressPrefix"),
"-NoProfile if ((Get-Command New-NetNat).Parameters.ContainsKey('InternalIPInterfaceAddressPrefix')) { exit 0 } else { exit 1 }"),
out int exitCode);

if (exitCode == 0)
{
return true;
}

// In case the Get-Command fails, fall back to the old check: Get-Help

new WireGuardExe().ExecuteCommand(new WireGuardCommand(string.Empty, WhichExe.Custom,
"powershell.exe",
"-NoProfile Get-Help New-NetNat -Parameter InternalIPInterfaceAddressPrefix"),
out exitCode);

return exitCode == 0;
}
}
Expand Down
11 changes: 5 additions & 6 deletions WireGuardServerForWindows/VersionInfo2.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@
<!-- Things to update: Version, Date, Release Notes -->
<AppUpdate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/micahmo/WgServerforWindows/master/WireGuardServerForWindows/AppUpdate.xsd">
<Version>2.0.2.0</Version>
<ReleaseDate>2022-09-27</ReleaseDate>
<Version>2.0.3.0</Version>
<ReleaseDate>2022-10-31</ReleaseDate>
<!-- Default download -->
<DownloadLink>https://github.com/micahmo/WgServerforWindows/releases/download/v2.0.2/WS4WSetup-2.0.2.exe</DownloadLink>
<DownloadFileName>WS4WSetup-2.0.2.exe</DownloadFileName>
<DownloadLink>https://github.com/micahmo/WgServerforWindows/releases/download/v2.0.3/WS4WSetup-2.0.3.exe</DownloadLink>
<DownloadFileName>WS4WSetup-2.0.3.exe</DownloadFileName>
<!-- Release notes -->
<VersionNotes> - Support client IP address generation in IPv6 range (#54)
- Allow mutliple client IPs (#54)</VersionNotes>
<VersionNotes> - Fix New-NetNat feature check (#62)</VersionNotes>
<ReleaseNotes></ReleaseNotes>
</AppUpdate>

0 comments on commit 1dcfbd0

Please sign in to comment.