Probable fix for GitHub issue #63 - do not unite() if either path is TCP, since doing so can result in asymmetric failed NAT-t over UDP if one side has a firewall that permits outgoing UDP but not incoming.

This commit is contained in:
Adam Ierymenko 2014-04-10 11:17:54 -07:00
parent 119ef5ecbf
commit b117ff5435
6 changed files with 39 additions and 19 deletions

View file

@ -136,9 +136,9 @@ public:
* @param data Data to send
* @param len Length of packet
* @param now Current time
* @return True if packet appears to have been sent, false if no path or other error
* @return Type of path used or Path::PATH_TYPE_NULL on failure
*/
bool send(const RuntimeEnvironment *_r,const void *data,unsigned int len,uint64_t now);
Path::Type send(const RuntimeEnvironment *_r,const void *data,unsigned int len,uint64_t now);
/**
* Send firewall opener to all UDP paths