← Back to team overview

linuxdcpp-team team mailing list archive

[Branch ~dcplusplus-team/dcplusplus/trunk] Rev 2160: untested; enable rather optimistic NAT-T searching

 

------------------------------------------------------------
revno: 2160
committer: cologic <ne5@xxxxxxxxxxx>
branch nick: dcplusplus
timestamp: Mon 2010-06-14 03:08:07 -0400
message:
  untested; enable rather optimistic NAT-T searching
modified:
  dcpp/AdcHub.cpp


--
lp:dcplusplus
https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk

Your team Dcplusplus-team is subscribed to branch lp:dcplusplus.
To unsubscribe from this branch go to https://code.launchpad.net/~dcplusplus-team/dcplusplus/trunk/+edit-subscription
=== modified file 'dcpp/AdcHub.cpp'
--- dcpp/AdcHub.cpp	2010-05-10 17:23:07 +0000
+++ dcpp/AdcHub.cpp	2010-06-14 07:08:07 +0000
@@ -739,7 +739,13 @@
 		send(c);
 	} else {
 		c.setType(AdcCommand::TYPE_FEATURE);
+#ifndef DISABLE_NAT_TRAVERSAL
+		c.setFeatures("+TCP4-NAT0");
+		send(c);		
+		c.setFeatures("+NAT0");
+#else
 		c.setFeatures("+TCP4");
+#endif
 		send(c);
 	}
 }