Fixed Spotify.Play
and fixed TCP.Connect
.
This commit is contained in:
@@ -242,13 +242,23 @@ namespace ehs
|
||||
return;
|
||||
|
||||
remoteHostName = address;
|
||||
remoteAddr = DNS::Resolve(address);
|
||||
remotePort = port;
|
||||
|
||||
if (addrType == AddrType::IPV6)
|
||||
{
|
||||
if (IsIPv6Only())
|
||||
remoteAddr = DNS::Resolve(AddrType::IPV6, address);
|
||||
else
|
||||
remoteAddr = DNS::Resolve(address);
|
||||
|
||||
Connect_v6(remoteAddr, port);
|
||||
}
|
||||
else if (addrType == AddrType::IPV4)
|
||||
{
|
||||
remoteAddr = DNS::Resolve(AddrType::IPV4, address);
|
||||
|
||||
Connect_v4(remoteAddr, port);
|
||||
}
|
||||
|
||||
connected = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user