summaryrefslogtreecommitdiff
path: root/modules/upnp
diff options
context:
space:
mode:
authorMax Hilbrunner <m.hilbrunner@gmail.com>2022-08-02 09:11:05 +0200
committerMax Hilbrunner <m.hilbrunner@gmail.com>2022-08-02 09:11:05 +0200
commit2685cc7bb6708df745317fd2f078bc945555e4f8 (patch)
treed6d2a35d4f2a7482442f0445ed357eff8165ce79 /modules/upnp
parent8cb51a642e7c34a73e7ed877ab46c041521205e5 (diff)
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.
Diffstat (limited to 'modules/upnp')
-rw-r--r--modules/upnp/upnp.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/modules/upnp/upnp.cpp b/modules/upnp/upnp.cpp
index d762ca4f09..82fe39e003 100644
--- a/modules/upnp/upnp.cpp
+++ b/modules/upnp/upnp.cpp
@@ -319,8 +319,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);
}