fix: update sendDomainConnectRequest to include socket type for public and local sockets
This commit is contained in:
@@ -1308,12 +1308,13 @@ void OverteClient::sendDomainConnectRequest() {
|
|||||||
qs.writeUInt32BE(hostOrderIPv4);
|
qs.writeUInt32BE(hostOrderIPv4);
|
||||||
};
|
};
|
||||||
|
|
||||||
// 10. Public socket: SockAddr (QHostAddress + quint16 port)
|
// 10. Public socket: type (quint8) + SockAddr (QHostAddress + quint16 port)
|
||||||
// Write the actual IPv4 address and port
|
qs.writeUInt8(1); // SocketType::UDP
|
||||||
writeQHostAddressIPv4(localIPv4);
|
writeQHostAddressIPv4(localIPv4);
|
||||||
qs.writeUInt16BE(localPort);
|
qs.writeUInt16BE(localPort);
|
||||||
|
|
||||||
// 11. Local socket: SockAddr
|
// 11. Local socket: type (quint8) + SockAddr
|
||||||
|
qs.writeUInt8(1); // SocketType::UDP
|
||||||
writeQHostAddressIPv4(localIPv4);
|
writeQHostAddressIPv4(localIPv4);
|
||||||
qs.writeUInt16BE(localPort);
|
qs.writeUInt16BE(localPort);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user