From 204dde8a7380d34364a20b4e1f6c1df8ec3461b9 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 5 Apr 2019 00:39:27 -0700 Subject: [PATCH] Avoid attempting to delete UPnP rules if the description doesn't match --- miss/miss.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/miss/miss.cpp b/miss/miss.cpp index a3ef211..55bb079 100644 --- a/miss/miss.cpp +++ b/miss/miss.cpp @@ -97,7 +97,8 @@ bool UPnPMapPort(struct UPNPUrls* urls, struct IGDdatas* data, int proto, const printf("NOT FOUND" NL); } else if (err == UPNPCOMMAND_SUCCESS) { - if (!strcmp(intClient, myAddr) && !strcmp(desc, myDesc)) { + // Some routers change the description, so we can't check that here + if (!strcmp(intClient, myAddr)) { if (atoi(leaseDuration) == 0) { printf("OK (Permanent)" NL); }