add tcptype to tcp ice candidate strings

meow-7.2.2
Roxie Linden 2023-10-11 20:50:06 -07:00
parent 70663ca395
commit 7da53bacc6
1 changed files with 4 additions and 0 deletions

View File

@ -716,6 +716,10 @@ static std::string iceCandidateToTrickleString(const webrtc::IceCandidateInterfa
"raddr " << candidate->candidate().related_address().ipaddr().ToString() << " " <<
"rport " << candidate->candidate().related_address().PortAsString();
}
if (candidate->candidate().protocol() == "tcp")
{
candidate_stream << " tcptype " << candidate->candidate().tcptype();
}
return candidate_stream.str();
}