Browse Source

Minor changes

SIP003 server port validation
Year 2018
tags/4.0.8
celeron533 6 years ago
parent
commit
f042e91305
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      shadowsocks-csharp/Controller/Service/Sip003Plugin.cs
  2. +1
    -1
      shadowsocks-csharp/Properties/AssemblyInfo.cs

+ 1
- 1
shadowsocks-csharp/Controller/Service/Sip003Plugin.cs View File

@@ -43,7 +43,7 @@ namespace Shadowsocks.Controller.Service
{
throw new ArgumentException("Value cannot be null or whitespace.", nameof(serverAddress));
}
if ((ushort)serverPort != serverPort)
if (serverPort <= 0 || serverPort > 65535)
{
throw new ArgumentOutOfRangeException("serverPort");
}


+ 1
- 1
shadowsocks-csharp/Properties/AssemblyInfo.cs View File

@@ -11,7 +11,7 @@ using System.Runtime.InteropServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Shadowsocks")]
[assembly: AssemblyCopyright("clowwindy & community 2017")]
[assembly: AssemblyCopyright("clowwindy & community 2018")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]


Loading…
Cancel
Save