diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-11-20 13:42:18 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2014-11-20 13:42:18 -0800 |
commit | 0c85b4ef5f406c51454b33ce22f0ce1585dbfb93 (patch) | |
tree | a5d121222c7b27e3a003d4f9c562e106317fa7cb /node | |
parent | ee9e6a3c6b697b25445fa93fd6bffc1a91e03e07 (diff) | |
download | infinitytier-0c85b4ef5f406c51454b33ce22f0ce1585dbfb93.tar.gz infinitytier-0c85b4ef5f406c51454b33ce22f0ce1585dbfb93.zip |
Tweak to symmetric NAT buster to add one to the number of ports above the current one it attempts.
Diffstat (limited to 'node')
-rw-r--r-- | node/Switch.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Switch.cpp b/node/Switch.cpp index 7c63761b..6502656b 100644 --- a/node/Switch.cpp +++ b/node/Switch.cpp @@ -482,7 +482,7 @@ unsigned long Switch::doTimerTasks() * the original port one more time for good measure, since sometimes it * fails first time around. */ int p = (int)qi->inaddr.port() - 2; - for(int k=0;k<5;++k) { + for(int k=0;k<6;++k) { if ((p > 0)&&(p <= 0xffff)) { qi->inaddr.setPort((unsigned int)p); sendHELLO(qi->peer,qi->inaddr); |