summaryrefslogtreecommitdiff
path: root/node
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2014-11-20 13:42:18 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2014-11-20 13:42:18 -0800
commit0c85b4ef5f406c51454b33ce22f0ce1585dbfb93 (patch)
treea5d121222c7b27e3a003d4f9c562e106317fa7cb /node
parentee9e6a3c6b697b25445fa93fd6bffc1a91e03e07 (diff)
downloadinfinitytier-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.cpp2
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);