From 573b5179bbf3bfd8a733bbc235706480df157efc Mon Sep 17 00:00:00 2001 From: ChsBuffer <33744752+chsbuffer@users.noreply.github.com> Date: Fri, 2 Jul 2021 19:03:29 +0800 Subject: [PATCH] Fix NFController._rdrConfig possible null reference warning --- Netch/Controllers/NFController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Netch/Controllers/NFController.cs b/Netch/Controllers/NFController.cs index 8ec8d5f4..295bc851 100644 --- a/Netch/Controllers/NFController.cs +++ b/Netch/Controllers/NFController.cs @@ -19,7 +19,7 @@ namespace Netch.Controllers { private Server? _server; private Mode? _mode; - private RedirectorConfig? _rdrConfig; + private RedirectorConfig _rdrConfig = null!; private static readonly ServiceController NFService = new("netfilter2");