From 5c7f3e0be5fc6e52e4446cfca871d042f35230f0 Mon Sep 17 00:00:00 2001 From: Geoffrey Merck F4FXL - KC3FRA Date: Tue, 20 Nov 2018 20:22:08 +0100 Subject: [PATCH] Add some logging --- ircDDBGateway/IRCDDBGatewayThread.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ircDDBGateway/IRCDDBGatewayThread.cpp b/ircDDBGateway/IRCDDBGatewayThread.cpp index b27d64e..2971e2f 100644 --- a/ircDDBGateway/IRCDDBGatewayThread.cpp +++ b/ircDDBGateway/IRCDDBGatewayThread.cpp @@ -1056,8 +1056,10 @@ void CIRCDDBGatewayThread::processG2() default: //Probably someone punching a UDP hole to us, keep track of that - if(incomingAddress.s_addr != INADDR_NONE && incomingPort > 0 && incomingPort < 65536) + if(incomingAddress.s_addr != INADDR_NONE && incomingPort > 0 && incomingPort < 65536) { + wxLogMessage(wxT("Incoming G2 UDP punch from %s:%i"), ::inet_ntoa(incomingAddress), incomingPort)); m_cache.updateGatewayG2(wxT(""), incomingAddress, incomingPort); + } return; }