refactor: move IModeController.TestNatRequired to Mode

This commit is contained in:
ChsBuffer
2020-10-13 09:48:21 +08:00
parent 79b6e5da43
commit ceb57dcc1a
6 changed files with 9 additions and 9 deletions

View File

@@ -66,7 +66,7 @@ namespace Netch.Controllers
throw new StartFailedException();
}
if (ModeController?.TestNatRequired ?? false)
if (mode.TestNatRequired)
NatTest();
return true;