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

For #1638, #307, refactor rtc config.

This commit is contained in:
winlin 2020-03-14 18:05:58 +08:00
parent 6f4584db53
commit a42cf3ae8d
3 changed files with 11 additions and 2 deletions

View file

@ -4323,6 +4323,11 @@ std::string SrsConfig::get_rtc_candidates()
if (!eip.empty()) {
return eip;
}
// If configed as ENV, but no ENV set, use default value.
if (srs_string_starts_with(conf->arg0(), "$")) {
return DEFAULT;
}
return (conf->arg0().c_str());
}