在同时设置了 IPV6 和 IPV4 地址的环境中才会出现,测试部门竟然没覆盖到:
void getRelayTuple(bool destinationIsPrivate,
bool destV4,
int64_t& serverId,
voice::Tuple& relayTuple)
{
serverId = mServerId;
std::string & address4 = destinationIsPrivate ? mPrivateServerIp4 : mPublicServerIp4;
std::string & address6 = destinationIsPrivate ? mPrivateServerIp6 : mPublicServerIp6;
if (!address4.empty() || !address6.empty())
{
std::string& ipAddress = !address4.empty() ? address4 : address6;
if (!destV4)
{
ipAddress = !address6.empty() ? address6 : address4;
}
relayTuple = voice::Tuple(ipAddress, mRelayPort, proto::UDP);
}
}
--
修改:speedboy2998 FROM 218.76.62.*
FROM 218.76.62.*