示例#1
0
文件: UPnP.cs 项目: nhz2f/xRAT
 public static void RemovePort(ushort port)
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
             portMap.Remove(port, "TCP");
     }
     catch
     { }
 }
示例#2
0
文件: UPnP.cs 项目: zzhacked/xRAT
 public static void RemovePort(ushort port)
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
         {
             portMap.Remove(port, "TCP");
         }
     }
     catch
     { }
 }
示例#3
0
文件: UPnP.cs 项目: werkamsus/xRAT
 public static void RemovePort()
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
         {
             portMap.Remove(Port, "TCP");
         }
         IsPortForwarded = false;
     }
     catch
     {
     }
 }
示例#4
0
文件: UPnP.cs 项目: he0x/xRAT
 public static void RemovePort()
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
             portMap.Remove(Port, "TCP");
         IsPortForwarded = false;
     }
     catch
     {
     }
 }
示例#5
0
        public static void Remove(int eport, ProtocolType type)
        {
            var mapping = new UPnPNAT().StaticPortMappingCollection;

            mapping.Remove(eport, type.ToString().ToUpper());
        }