mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-19 00:41:43 +00:00
[wpinet] Fix port having incorrect endian on windows resolver
For some reason, ip is in network order, but port is in host order.
This commit is contained in:
@@ -186,7 +186,7 @@ static _Function_class_(DNS_QUERY_COMPLETION_ROUTINE) VOID WINAPI
|
||||
wpi::util::convertUTF16ToUTF8String(wideServiceName, storage);
|
||||
|
||||
data.serviceName = std::string{storage};
|
||||
data.port = ntohs(foundSrv->Data.Srv.wPort);
|
||||
data.port = foundSrv->Data.Srv.wPort;
|
||||
data.ipv4Address = ntohl(A->Data.A.IpAddress);
|
||||
|
||||
impl->onFound(std::move(data));
|
||||
|
||||
Reference in New Issue
Block a user