From 42120f849f100a51d1522f0149e01b8fd91607d8 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Mon, 10 Apr 2023 11:43:48 -0700 Subject: [PATCH] Send doesn't need the port # --- reflector/InterlinkMap.cpp | 1 + reflector/URFProtocol.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/reflector/InterlinkMap.cpp b/reflector/InterlinkMap.cpp index d1cb570..64bb36d 100644 --- a/reflector/InterlinkMap.cpp +++ b/reflector/InterlinkMap.cpp @@ -88,6 +88,7 @@ bool CInterlinkMap::LoadFromFile(const std::string &filename) port = 10017; } } + std::cout << "USING PORT " << port << std::endl; m_InterlinkMap[token[0]] = CInterlinkMapItem(token[1], token[2], (uint16_t)port); } #ifndef NO_DHT diff --git a/reflector/URFProtocol.cpp b/reflector/URFProtocol.cpp index eaef23f..d7cd26b 100644 --- a/reflector/URFProtocol.cpp +++ b/reflector/URFProtocol.cpp @@ -348,7 +348,7 @@ void CURFProtocol::HandlePeerLinks(void) #endif // send connect packet to re-initiate peer link EncodeConnectPacket(&buffer, it->second.GetModules().c_str()); - Send(buffer, it->second.GetIp(), it->second.GetPort()); + Send(buffer, it->second.GetIp()); std::cout << "Sent connect packet to URF peer " << cs << " @ " << it->second.GetIp() << " for modules " << it->second.GetModules() << " to port " << it->second.GetPort() << std::endl; #ifndef NO_DHT }