mirror of
https://github.com/g4klx/ircDDBGateway.git
synced 2026-04-06 06:43:52 +00:00
Allow to compile without NAT traversal, disabled by default
This commit is contained in:
parent
5eafed9454
commit
1e48be71dd
6 changed files with 24 additions and 1 deletions
|
|
@ -147,6 +147,7 @@ CAMBEData* CG2ProtocolHandler::readAMBE(in_addr remoteAddress, unsigned int remo
|
|||
return data;
|
||||
}
|
||||
|
||||
#if defined(ENABLE_NAT_TRAVERSAL)
|
||||
void CG2ProtocolHandler::traverseNat(const wxString& address)
|
||||
{
|
||||
unsigned char buffer[1];
|
||||
|
|
@ -158,6 +159,7 @@ void CG2ProtocolHandler::traverseNat(const wxString& address)
|
|||
|
||||
m_socket.write(buffer, 1, addr, G2_DV_PORT);
|
||||
}
|
||||
#endif
|
||||
|
||||
void CG2ProtocolHandler::close()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue