Minor changes
SIP003 server port validation Year 2018
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user