From dcf33c5f90125b019cf0b2ef8ed4511b2e0699fe Mon Sep 17 00:00:00 2001 From: Yiheng Date: Sun, 24 Sep 2023 12:51:12 +1000 Subject: [PATCH] clean up --- RS/RS/RS.cs | 3 --- RS/RS/Service/PortService.cs | 1 + 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/RS/RS/RS.cs b/RS/RS/RS.cs index 037d6dd..8008ee9 100644 --- a/RS/RS/RS.cs +++ b/RS/RS/RS.cs @@ -2,10 +2,7 @@ using System.Diagnostics; using System.Drawing; using System.Globalization; -using System.IO; using System.Net; -using System.Net.Sockets; -using System.Text; using System.Threading; using System.Windows.Forms; using RS.Service; diff --git a/RS/RS/Service/PortService.cs b/RS/RS/Service/PortService.cs index ca123fa..1b9cdc0 100644 --- a/RS/RS/Service/PortService.cs +++ b/RS/RS/Service/PortService.cs @@ -22,6 +22,7 @@ public PortService() { } /// The name of the entry /// The port number /// This can throw lots of exception, treat any as an error. + [Obsolete("Use RegisterPort instead to only grant Admin once")] public void AddPortToFirewall(string name, int port) { Type TicfMgr = Type.GetTypeFromProgID("HNetCfg.FwMgr");