From 6d3312dd0d52cd1c24cdcbe1088257616401074f Mon Sep 17 00:00:00 2001 From: Tom Early Date: Sat, 11 May 2019 09:29:37 -0700 Subject: [PATCH] fixed port bug identified by W1BSB --- QnetGateway.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QnetGateway.cpp b/QnetGateway.cpp index cbe9a29..033dd40 100644 --- a/QnetGateway.cpp +++ b/QnetGateway.cpp @@ -1454,7 +1454,7 @@ void CQnetGateway::ProcessModem() to_remote_g2[i].streamid = dsvt.streamid; if (ip.npos == ip.find(':') && af_family[result] == AF_INET6) fprintf(stderr, "ERROR: IP returned from cache is IPV4 but family is AF_INET6!\n"); - to_remote_g2[i].toDstar.Initialize(af_family[result], (uint16_t)((af_family[result]==AF_INET6) ? g2_ipv6_external.port : g2_ipv6_external.port), ip.c_str()); + to_remote_g2[i].toDstar.Initialize(af_family[result], (uint16_t)((af_family[result]==AF_INET6) ? g2_ipv6_external.port : g2_external.port), ip.c_str()); /* set rpt1 */ memset(dsvt.hdr.rpt1, ' ', 8);