For #1657, Fix utest fail
This commit is contained in:
parent
272ca9d0f6
commit
faf53927e8
|
|
@ -7741,6 +7741,10 @@ bool SrsConfig::get_https_api_enabled(SrsConfDirective* conf)
|
||||||
{
|
{
|
||||||
static bool DEFAULT = false;
|
static bool DEFAULT = false;
|
||||||
|
|
||||||
|
if (!conf) {
|
||||||
|
return DEFAULT;
|
||||||
|
}
|
||||||
|
|
||||||
conf = conf->get("enabled");
|
conf = conf->get("enabled");
|
||||||
if (!conf) {
|
if (!conf) {
|
||||||
return DEFAULT;
|
return DEFAULT;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user