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");