1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

SRT: Fix the missing config mss. v5.0.188 (#3825)

---------

Co-authored-by: john <hondaxiao@tencent.com>
This commit is contained in:
肖志宏 2023-10-10 20:27:30 +08:00
parent 75c9c5a849
commit 53ebf58583
5 changed files with 11 additions and 4 deletions

View file

@ -7912,7 +7912,7 @@ int64_t SrsConfig::get_srto_maxbw()
int SrsConfig::get_srto_mss()
{
SRS_OVERWRITE_BY_ENV_INT("srs.srt_server.mms"); // SRS_SRT_SERVER_MMS
SRS_OVERWRITE_BY_ENV_INT("srs.srt_server.mss"); // SRS_SRT_SERVER_MSS
static int DEFAULT = 1500;
SrsConfDirective* conf = root->get("srt_server");
@ -7920,7 +7920,7 @@ int SrsConfig::get_srto_mss()
return DEFAULT;
}
conf = conf->get("mms");
conf = conf->get("mss");
if (!conf || conf->arg0().empty()) {
return DEFAULT;
}