mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
6f4584db53
commit
a42cf3ae8d
3 changed files with 11 additions and 2 deletions
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue