From 7c42ac4d79d310f52f40673b31d3499fc8cd5518 Mon Sep 17 00:00:00 2001 From: Dw9 Date: Fri, 29 Dec 2023 10:53:47 +0800 Subject: [PATCH] Set the default port for WebRTC (#3175) Set the default port for WebRTC to 8000 to prevent the generated default configuration file from disabling WebRTC features. --- webrtc/WebRtcTransport.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/webrtc/WebRtcTransport.cpp b/webrtc/WebRtcTransport.cpp index 685e9f89..7fc8816e 100644 --- a/webrtc/WebRtcTransport.cpp +++ b/webrtc/WebRtcTransport.cpp @@ -59,8 +59,8 @@ static onceToken token([]() { mINI::Instance()[kTimeOutSec] = 15; mINI::Instance()[kExternIP] = ""; mINI::Instance()[kRembBitRate] = 0; - mINI::Instance()[kPort] = 0; - mINI::Instance()[kTcpPort] = 0; + mINI::Instance()[kPort] = 8000; + mINI::Instance()[kTcpPort] = 8000; mINI::Instance()[kStartBitrate] = 0; mINI::Instance()[kMaxBitrate] = 0; @@ -1380,4 +1380,4 @@ static onceToken s_rtc_auto_register([]() { }); }); -}// namespace mediakit \ No newline at end of file +}// namespace mediakit