mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
Merge pull request #467 from PhenomRetroShare/Fix_NATStatusLED
Fix NAT Status LED
This commit is contained in:
commit
6db747a263
@ -243,6 +243,7 @@ int pqiNetStateBox::updateNetState()
|
|||||||
|
|
||||||
void pqiNetStateBox::clearOldNetworkData()
|
void pqiNetStateBox::clearOldNetworkData()
|
||||||
{
|
{
|
||||||
|
#ifdef RS_USE_DHT_STUNNER
|
||||||
/* check if any measurements are too old to consider */
|
/* check if any measurements are too old to consider */
|
||||||
time_t now = time(NULL);
|
time_t now = time(NULL);
|
||||||
if (now - mStunProxyTS > NETSTATE_PARAM_TIMEOUT)
|
if (now - mStunProxyTS > NETSTATE_PARAM_TIMEOUT)
|
||||||
@ -254,6 +255,14 @@ void pqiNetStateBox::clearOldNetworkData()
|
|||||||
{
|
{
|
||||||
mStunDhtSet = false;
|
mStunDhtSet = false;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
//Set values, as they are not updated.
|
||||||
|
mStunProxySet = true;
|
||||||
|
mStunDhtSet = true;
|
||||||
|
mStunProxyStable = true;
|
||||||
|
mStunDhtStable = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user