Merge pull request #63809 from mhilbrunner/upnp-no-delete-only-add

UPNP: Don't delete previous mappings when adding new port mappings
This commit is contained in:
Max Hilbrunner 2022-08-27 23:32:37 +02:00 committed by GitHub
commit b2bcf81c7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}