Exemplo n.º 1
0
Arquivo: UPnP.cs Projeto: nhz2f/xRAT
 public static void RemovePort(ushort port)
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
             portMap.Remove(port, "TCP");
     }
     catch
     { }
 }
Exemplo n.º 2
0
 public static void RemovePort(ushort port)
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
         {
             portMap.Remove(port, "TCP");
         }
     }
     catch
     { }
 }
Exemplo n.º 3
0
 public static void RemovePort()
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
         {
             portMap.Remove(Port, "TCP");
         }
         IsPortForwarded = false;
     }
     catch
     {
     }
 }
Exemplo n.º 4
0
Arquivo: UPnP.cs Projeto: he0x/xRAT
 public static void RemovePort()
 {
     try
     {
         IStaticPortMappingCollection portMap = new UPnPNAT().StaticPortMappingCollection;
         if (portMap != null)
             portMap.Remove(Port, "TCP");
         IsPortForwarded = false;
     }
     catch
     {
     }
 }
Exemplo n.º 5
0
        public static void Remove(int eport, ProtocolType type)
        {
            var mapping = new UPnPNAT().StaticPortMappingCollection;

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