Allow to compile without NAT traversal, disabled by default

This commit is contained in:
Geoffrey Merck F4FXL - KC3FRA 2019-01-16 20:41:57 +01:00
parent 5eafed9454
commit 1e48be71dd
6 changed files with 24 additions and 1 deletions

View file

@ -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()
{