From 893aa76c9c08e1b8adbf9ddf42833ae481fdcb4f Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Fri, 14 Aug 2020 17:52:59 -0700 Subject: [PATCH] Replace hardcoded constant with #define --- miss/miss.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/miss/miss.cpp b/miss/miss.cpp index 012a2c1..f061566 100644 --- a/miss/miss.cpp +++ b/miss/miss.cpp @@ -415,7 +415,7 @@ bool NATPMPMapPort(natpmp_t* natpmp, int proto, int port, bool enable, bool inde lifetime = 604800; // 1 week } else { - lifetime = 3600; + lifetime = PORT_MAPPING_DURATION_SEC; } printf("Updating NAT-PMP port mapping for %s %d...", proto == IPPROTO_TCP ? "TCP" : "UDP", port);