From 0049349e849b9726e22b5b5e1b90febebd41af1b Mon Sep 17 00:00:00 2001 From: "Byron Campen [:bwc]" Date: Tue, 6 Apr 2021 18:49:48 +0000 Subject: [PATCH] Bug 1702512: Add 53 to the list of allowed ports for webrtc. r=mjf This is sometimes used by deployments that want to work around NATs that block UDP. Depends on D110948 Differential Revision: https://phabricator.services.mozilla.com/D110949 --- dom/media/webrtc/jsapi/MediaTransportHandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dom/media/webrtc/jsapi/MediaTransportHandler.cpp b/dom/media/webrtc/jsapi/MediaTransportHandler.cpp index 2e0127eac289..f21b9291676b 100644 --- a/dom/media/webrtc/jsapi/MediaTransportHandler.cpp +++ b/dom/media/webrtc/jsapi/MediaTransportHandler.cpp @@ -289,6 +289,7 @@ static NrIceCtx::Policy toNrIcePolicy(dom::RTCIceTransportPolicy aPolicy) { // list of known acceptable ports for webrtc int16_t gGoodWebrtcPortList[] = { + 53, // Some deplyoments use DNS port to punch through overzealous NATs 3478, // stun or turn 5349, // stuns or turns 0, // Sentinel value: This MUST be zero