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

RTC: Refine blackhole for session

This commit is contained in:
winlin 2020-05-26 13:49:27 +08:00
parent fccbe98f70
commit db43faa848
4 changed files with 6 additions and 6 deletions

View file

@ -4884,7 +4884,7 @@ bool SrsConfig::get_rtc_server_black_hole()
return SRS_CONF_PERFER_FALSE(conf->arg0());
}
std::string SrsConfig::get_rtc_server_black_hole_publisher()
std::string SrsConfig::get_rtc_server_black_hole_addr()
{
static string DEFAULT = "";
@ -4898,7 +4898,7 @@ std::string SrsConfig::get_rtc_server_black_hole_publisher()
return DEFAULT;
}
conf = conf->get("publisher");
conf = conf->get("addr");
if (!conf || conf->arg0().empty()) {
return DEFAULT;
}