From e43adef438e128f0f068c01dc81d2d3fd8384e18 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 26 Jan 2021 10:52:35 +0000 Subject: [PATCH] firefox uses 'address' instead of 'ip' --- src/CallHandler.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/CallHandler.tsx b/src/CallHandler.tsx index 659795afc6..e0f744630b 100644 --- a/src/CallHandler.tsx +++ b/src/CallHandler.tsx @@ -426,15 +426,17 @@ export default class CallHandler { ); logger.debug("Local candidates:"); 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( - `${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}`, ); } logger.debug("Remote candidates:"); 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( - `${cand.id} - type: ${cand.candidateType}, ip: ${cand.ip}, port: ${cand.port}, ` + + `${cand.id} - type: ${cand.candidateType}, address: ${address}, port: ${cand.port}, ` + `protocol: ${cand.protocol}`, ); }