From d59f7a09dbe573b94e19259946b7808c553439fc Mon Sep 17 00:00:00 2001 From: Phenom Date: Mon, 8 Aug 2016 21:59:12 +0200 Subject: [PATCH] Fix NAT Status LED Fix the PR#426 4d2d825d --- libretroshare/src/pqi/pqinetstatebox.cc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/libretroshare/src/pqi/pqinetstatebox.cc b/libretroshare/src/pqi/pqinetstatebox.cc index 7a0601fb9..b08994855 100644 --- a/libretroshare/src/pqi/pqinetstatebox.cc +++ b/libretroshare/src/pqi/pqinetstatebox.cc @@ -243,6 +243,7 @@ int pqiNetStateBox::updateNetState() void pqiNetStateBox::clearOldNetworkData() { +#ifdef RS_USE_DHT_STUNNER /* check if any measurements are too old to consider */ time_t now = time(NULL); if (now - mStunProxyTS > NETSTATE_PARAM_TIMEOUT) @@ -254,6 +255,14 @@ void pqiNetStateBox::clearOldNetworkData() { mStunDhtSet = false; } +#else + //Set values, as they are not updated. + mStunProxySet = true; + mStunDhtSet = true; + mStunProxyStable = true; + mStunDhtStable = true; +#endif + }