Randomize ports if node goes offline

This commit is contained in:
Joseph Henry
2021-12-07 11:46:07 -08:00
parent 81cc049eaf
commit 13740f9767
2 changed files with 63 additions and 37 deletions

View File

@@ -362,6 +362,8 @@ class NodeService {
int shouldBindInterface(const char* ifname, const InetAddress& ifaddr);
unsigned int _getRandomPort(unsigned int minPort, unsigned int maxPort);
int _trialBind(unsigned int port);
/** Return whether the NodeService is running */