Fix #528 socks5 only mode start failed

This commit is contained in:
ChsBuffer
2021-02-28 20:51:43 +08:00
parent e0ca3a5ee4
commit 790abce3c8
2 changed files with 6 additions and 13 deletions

View File

@@ -149,7 +149,7 @@ namespace Netch.Controllers
ModeController = ModeHelper.GetModeControllerByType(mode.Type, out var port, out var portName, out var portType);
if (ModeController == null)
throw new MessageException("未知模式类型");
return;
if (port != null)
PortCheck((ushort) port, portName, portType);