fix: update sendDomainConnectRequest to include socket type for public and local sockets

This commit is contained in:
MayaTheShy
2025-11-10 00:16:12 -05:00
parent 007dde4670
commit c25ac298e7

View File

@@ -1308,12 +1308,13 @@ void OverteClient::sendDomainConnectRequest() {
qs.writeUInt32BE(hostOrderIPv4);
};
// 10. Public socket: SockAddr (QHostAddress + quint16 port)
// Write the actual IPv4 address and port
// 10. Public socket: type (quint8) + SockAddr (QHostAddress + quint16 port)
qs.writeUInt8(1); // SocketType::UDP
writeQHostAddressIPv4(localIPv4);
qs.writeUInt16BE(localPort);
// 11. Local socket: SockAddr
// 11. Local socket: type (quint8) + SockAddr
qs.writeUInt8(1); // SocketType::UDP
writeQHostAddressIPv4(localIPv4);
qs.writeUInt16BE(localPort);