diff --git a/HyperbolicDownloaderApi/Managment/ApiManager.cs b/HyperbolicDownloaderApi/Managment/ApiManager.cs index 38ee6f1..b6135e0 100644 --- a/HyperbolicDownloaderApi/Managment/ApiManager.cs +++ b/HyperbolicDownloaderApi/Managment/ApiManager.cs @@ -94,14 +94,7 @@ public class ApiManager { try { - IEnumerable? mappings = device.GetAllMappingsAsync().GetAwaiter().GetResult(); - foreach (Mapping? mapping in mappings) - { - if (mapping.Description.Contains("HyperbolicDowloader") && mapping.PrivateIP.ToString() == portMapping?.PrivateIP.ToString()) - { - device.DeletePortMapAsync(mapping).GetAwaiter().GetResult(); - } - } + device.DeletePortMapAsync(portMapping).GetAwaiter().GetResult(); } catch (Exception ex) {