From 47d60b9f2429da43c7de6ab9dc897c5896709d5c Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Sun, 9 Aug 2020 15:16:05 -0700 Subject: [PATCH] Leave permanent mappings alone during the update cycle --- miss/miss.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/miss/miss.cpp b/miss/miss.cpp index 1b1b490..af0d2f8 100644 --- a/miss/miss.cpp +++ b/miss/miss.cpp @@ -101,6 +101,11 @@ bool UPnPMapPort(struct UPNPUrls* urls, struct IGDdatas* data, int proto, const if (!strcmp(intClient, myAddr)) { if (atoi(leaseDuration) == 0) { printf("OK (Permanent)" NL); + + // If we have an existing permanent mapping, we can just leave it alone. + if (enable) { + return true; + } } else { printf("OK (%s seconds remaining)" NL, leaseDuration);