We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f2f919d commit c954192Copy full SHA for c954192
1 file changed
Source/WebCore/platform/mediastream/libwebrtc/LibWebRTCProvider.cpp
@@ -399,6 +399,10 @@ rtc::scoped_refptr<webrtc::PeerConnectionInterface> LibWebRTCProvider::createPee
399
if (!factory)
400
return nullptr;
401
402
+ auto portRangeFromEnvironment = StringView::fromLatin1(std::getenv("WEBKIT_WEBRTC_PEER_PORT_RANGE"));
403
+ if (!portRangeFromEnvironment.isEmpty())
404
+ setPortAllocatorRange(portRangeFromEnvironment);
405
+
406
if (auto portRange = portAllocatorRange())
407
portAllocator->SetPortRange(portRange->first, portRange->second);
408
0 commit comments