From 4f3c12c23d0748d604cb9e24e3576d83f875fbec Mon Sep 17 00:00:00 2001 From: Max Hilbrunner Date: Tue, 2 Aug 2022 09:11:05 +0200 Subject: [PATCH] UPNP: Don't delete mappings when adding mappings Don't delete previous mappings when adding a new mapping. This was a old workaround that seems to cause issues. (cherry picked from commit 2685cc7bb6708df745317fd2f078bc945555e4f8) --- modules/upnp/upnp.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/upnp/upnp.cpp b/modules/upnp/upnp.cpp index e0a9cb75af3..745876dc4a9 100644 --- a/modules/upnp/upnp.cpp +++ b/modules/upnp/upnp.cpp @@ -320,8 +320,6 @@ int UPNP::add_port_mapping(int port, int port_internal, String desc, String prot return UPNP_RESULT_NO_GATEWAY; } - dev->delete_port_mapping(port, proto); - return dev->add_port_mapping(port, port_internal, desc, proto, duration); }