mirror of
https://github.com/vector-im/element-web.git
synced 2025-08-18 12:17:03 +02:00
firefox uses 'address' instead of 'ip'
This commit is contained in:
parent
ec0266d82b
commit
e43adef438
@ -426,15 +426,17 @@ export default class CallHandler {
|
|||||||
);
|
);
|
||||||
logger.debug("Local candidates:");
|
logger.debug("Local candidates:");
|
||||||
for (const cand of stats.filter(item => item.type === 'local-candidate')) {
|
for (const cand of stats.filter(item => item.type === 'local-candidate')) {
|
||||||
|
const address = cand.address || cand.ip; // firefox uses 'address', chrome uses 'ip'
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`${cand.id} - type: ${cand.candidateType}, ip: ${cand.ip}, port: ${cand.port}, ` +
|
`${cand.id} - type: ${cand.candidateType}, address: ${address}, port: ${cand.port}, ` +
|
||||||
`protocol: ${cand.protocol}, relay protocol: ${cand.relayProtocol}, network type: ${cand.networkType}`,
|
`protocol: ${cand.protocol}, relay protocol: ${cand.relayProtocol}, network type: ${cand.networkType}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
logger.debug("Remote candidates:");
|
logger.debug("Remote candidates:");
|
||||||
for (const cand of stats.filter(item => item.type === 'remote-candidate')) {
|
for (const cand of stats.filter(item => item.type === 'remote-candidate')) {
|
||||||
|
const address = cand.address || cand.ip; // firefox uses 'address', chrome uses 'ip'
|
||||||
logger.debug(
|
logger.debug(
|
||||||
`${cand.id} - type: ${cand.candidateType}, ip: ${cand.ip}, port: ${cand.port}, ` +
|
`${cand.id} - type: ${cand.candidateType}, address: ${address}, port: ${cand.port}, ` +
|
||||||
`protocol: ${cand.protocol}`,
|
`protocol: ${cand.protocol}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user