1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-02-06 19:53:14 +00:00

Fixed bug with self test

This commit is contained in:
Bryan Roe
2021-02-11 18:33:58 -08:00
parent e5418181c3
commit 1d91caad6f

View File

@@ -5143,7 +5143,10 @@ int MeshAgent_AgentMode(MeshAgentHostContainer *agentHost, int paramLen, char **
}
#endif
ILibIPAddressMonitor_Create(agentHost->chain, MeshAgent_AgentMode_IPAddressChanged_Handler, agentHost);
if (ILibSimpleDataStore_Get(agentHost->masterDb, "selfTest", NULL, 0) == 0)
{
ILibIPAddressMonitor_Create(agentHost->chain, MeshAgent_AgentMode_IPAddressChanged_Handler, agentHost);
}
MeshServer_Connect(agentHost);