mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-07-16 10:03:14 -07:00
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:
parent
119ef5ecbf
commit
b117ff5435
6 changed files with 39 additions and 19 deletions
|
@ -80,6 +80,15 @@ public:
|
|||
return _type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return True if this is a UDP socket
|
||||
*/
|
||||
inline bool udp() const
|
||||
throw()
|
||||
{
|
||||
return ((_type == ZT_SOCKET_TYPE_UDP_V4)||(_type == ZT_SOCKET_TYPE_UDP_V6));
|
||||
}
|
||||
|
||||
/**
|
||||
* @return True if this is a TCP socket
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue