webrtc tcp模式支持Firefox

This commit is contained in:
ziyue 2022-11-18 17:00:43 +08:00
parent b6f902fbe4
commit f05425825f
1 changed files with 3 additions and 0 deletions

View File

@ -602,6 +602,9 @@ makeIceCandidate(std::string ip, uint16_t port, uint32_t priority = 100, std::st
candidate->address = ip;
candidate->port = port;
candidate->type = "host";
if (proto == "tcp") {
candidate->type += " tcptype passive";
}
return candidate;
}