mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
parent
d21ef106a0
commit
51af2b4779
10 changed files with 68 additions and 227 deletions
|
@ -4290,7 +4290,7 @@ bool SrsConfig::get_rtc_enabled(SrsConfDirective* conf)
|
|||
|
||||
int SrsConfig::get_rtc_listen()
|
||||
{
|
||||
static int DEFAULT = 9527;
|
||||
static int DEFAULT = 8000;
|
||||
|
||||
SrsConfDirective* conf = root->get("rtc");
|
||||
if (!conf) {
|
||||
|
@ -4318,6 +4318,11 @@ std::string SrsConfig::get_rtc_candidates()
|
|||
if (!conf || conf->arg0().empty()) {
|
||||
return DEFAULT;
|
||||
}
|
||||
|
||||
string eip = srs_getenv(conf->arg0());
|
||||
if (!eip.empty()) {
|
||||
return eip;
|
||||
}
|
||||
|
||||
return (conf->arg0().c_str());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue