зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1336507 - Part 3: Make sure mozLocalTransport is set to "tls" where appropriate. r=drno
MozReview-Commit-ID: EQCKgaFlA3q --HG-- extra : rebase_source : 35a7a337f0e02e3d1543035314e2c129d3fac7e5
This commit is contained in:
Родитель
f55547b66e
Коммит
9699169e39
|
@ -91,7 +91,11 @@ static bool ToNrIceAddr(nr_transport_addr &addr,
|
|||
|
||||
switch (addr.protocol) {
|
||||
case IPPROTO_TCP:
|
||||
out->transport = kNrIceTransportTcp;
|
||||
if (addr.tls_host[0] != '\0') {
|
||||
out->transport = kNrIceTransportTls;
|
||||
} else {
|
||||
out->transport = kNrIceTransportTcp;
|
||||
}
|
||||
break;
|
||||
case IPPROTO_UDP:
|
||||
out->transport = kNrIceTransportUdp;
|
||||
|
|
Загрузка…
Ссылка в новой задаче