From 845bb0248f8dc7a60477c88373d91d0f17463b81 Mon Sep 17 00:00:00 2001 From: Tom Early Date: Fri, 9 Apr 2021 16:59:26 -0700 Subject: [PATCH] addr init error fix --- QnetGateway.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index 5cfda26..5822203 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -54,7 +54,7 @@ #define CFG_DIR "/usr/local/etc" #endif -const std::string GW_VERSION("QnetGateway-10221"); +const std::string GW_VERSION("QnetGateway-10409"); int CQnetGateway::FindIndex(const int i) const { @@ -492,7 +492,7 @@ void CQnetGateway::GetIRCDataThread(const int i) if (addr.empty()) break; CSockAddress to; - if (addr.npos == rptr.find(':')) + if (addr.npos == addr.find(':')) to.Initialize(AF_INET, (unsigned short)g2_external.port, addr.c_str()); else to.Initialize(AF_INET6, (unsigned short)g2_ipv6_external.port, addr.c_str());