Skip to content

Commit b82d0e1

Browse files
authored
Merge pull request #184 from micahmo/release/v2.1.1
Release/v2.1.1
2 parents b802f65 + fbf6531 commit b82d0e1

File tree

6 files changed

+17
-18
lines changed

6 files changed

+17
-18
lines changed

Directory.Build.props

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<Project>
22
<PropertyGroup>
33
<!-- Keep in sync with WS4WSetupScript.iss and VersionInfo.xml -->
4-
<AssemblyVersion>2.1.0.0</AssemblyVersion>
5-
<FileVersion>2.1.0.0</FileVersion>
6-
<InformationalVersion>2.1.0.0</InformationalVersion>
4+
<AssemblyVersion>2.1.1.0</AssemblyVersion>
5+
<FileVersion>2.1.1.0</FileVersion>
6+
<InformationalVersion>2.1.1.0</InformationalVersion>
77
<Authors>Micah Morrison</Authors>
88
<Product>WS4W</Product>
99
</PropertyGroup>

Installer/WS4WSetupScript.iss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#define MyAppNameOld "WireGuard Server For Windows"
22
#define MyAppName "Wg Server for Windows"
3-
#define MyAppVersion "2.1.0"
3+
#define MyAppVersion "2.1.1"
44
#define MyAppPublisher "Micah Morrison"
55
#define MyAppURL "https://github.com/micahmo/WgServerforWindows"
66
#define MyAppExeName "WgServerforWindows.exe"

WgServerforWindows/Models/ClientConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -290,7 +290,7 @@ public ClientConfiguration(ClientConfigurationList parentList)
290290
// Support CSV allowed IPs
291291
foreach (string address in obj.Value.Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries).Select(a => a.Trim()))
292292
{
293-
if (IPNetwork.TryParse(address, out _) == false)
293+
if (IPNetwork2.TryParse(address, out _) == false)
294294
{
295295
return Resources.NetworkAddressValidationError;
296296
}

WgServerforWindows/Models/NetNatRangeSubCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,14 @@ public override void Configure()
3838
{
3939
if (!string.IsNullOrWhiteSpace(selectionWindowModel.SelectedItem.BackingObject))
4040
{
41-
if (!IPNetwork.TryParse(selectionWindowModel.SelectedItem.BackingObject, out _))
41+
if (!IPNetwork2.TryParse(selectionWindowModel.SelectedItem.BackingObject, out _))
4242
{
4343
selectionWindowModel.ValidationError = Resources.NetworkAddressValidationError;
4444
return false;
4545
}
46-
// IPNetwork.TryParse recognizes single IP addresses as CIDR (with 8 mask).
46+
// IPNetwork2.TryParse recognizes single IP addresses as CIDR (with 8 mask).
4747
// This is not good, because we want an explicit CIDR for the server.
48-
// Therefore, if IPNetwork.TryParse succeeds, and IPAddress.TryParse also succeeds, we have a problem.
48+
// Therefore, if IPNetwork2.TryParse succeeds, and IPAddress.TryParse also succeeds, we have a problem.
4949
if (IPAddress.TryParse(selectionWindowModel.SelectedItem.BackingObject, out _))
5050
{
5151
// This is just a regular address. We want CIDR.

WgServerforWindows/Models/ServerConfiguration.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ public ServerConfiguration()
3737
// Multiple server addresses are supported, so validate all of them
3838
foreach (string address in obj.Value.Split(',').Select(a => a.Trim()))
3939
{
40-
if (IPNetwork.TryParse(address, out _) == false)
40+
if (IPNetwork2.TryParse(address, out _) == false)
4141
{
4242
return Resources.NetworkAddressValidationError;
4343
}
44-
// IPNetwork.TryParse recognizes single IP addresses as CIDR (with 8 mask).
44+
// IPNetwork2.TryParse recognizes single IP addresses as CIDR (with 8 mask).
4545
// This is not good, because we want an explicit CIDR for the server.
46-
// Therefore, if IPNetwork.TryParse succeeds, and IPAddress.TryParse also succeeds, we have a problem.
46+
// Therefore, if IPNetwork2.TryParse succeeds, and IPAddress.TryParse also succeeds, we have a problem.
4747
if (IPAddress.TryParse(address, out _))
4848
{
4949
// This is just a regular address. We want CIDR.
@@ -167,7 +167,7 @@ public ServerConfiguration()
167167
// Support CSV allowed IPs
168168
foreach (string address in obj.Value.Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries).Select(a => a.Trim()))
169169
{
170-
if (IPNetwork.TryParse(address, out _) == false)
170+
if (IPNetwork2.TryParse(address, out _) == false)
171171
{
172172
return Resources.NetworkAddressValidationError;
173173
}

WireGuardServerForWindows/VersionInfo2.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,12 @@
22
<!-- Things to update: Version, Date, Release Notes -->
33
<AppUpdate xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
44
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/micahmo/WgServerforWindows/master/WireGuardServerForWindows/AppUpdate.xsd">
5-
<Version>2.1.0.0</Version>
6-
<ReleaseDate>2025-01-17</ReleaseDate>
5+
<Version>2.1.1.0</Version>
6+
<ReleaseDate>2025-01-30</ReleaseDate>
77
<!-- Default download -->
8-
<DownloadLink>https://github.com/micahmo/WgServerforWindows/releases/download/v2.1.0/WS4WSetup-2.1.0.exe</DownloadLink>
9-
<DownloadFileName>WS4WSetup-2.1.0.exe</DownloadFileName>
8+
<DownloadLink>https://github.com/micahmo/WgServerforWindows/releases/download/v2.1.1/WS4WSetup-2.1.1.exe</DownloadLink>
9+
<DownloadFileName>WS4WSetup-2.1.1.exe</DownloadFileName>
1010
<!-- Release notes -->
11-
<VersionNotes> - Upgraded to .NET 8 (Please be on the lookout for broken functionality and report any issues on GitHub!)
12-
- Added the ability to view the names of clients in the server status</VersionNotes>
11+
<VersionNotes> - This is a quick update which fixes an IP address validation issue reported in #182</VersionNotes>
1312
<ReleaseNotes></ReleaseNotes>
1413
</AppUpdate>

0 commit comments

Comments
 (0)