mirror of
https://github.com/ossrs/srs.git
synced 2025-02-13 03:41:55 +00:00
fix bug of get daemon
This commit is contained in:
parent
7930add7f9
commit
76290a5a12
2 changed files with 9 additions and 1 deletions
8
trunk/conf/console.conf
Normal file
8
trunk/conf/console.conf
Normal file
|
@ -0,0 +1,8 @@
|
|||
# main config for srs.
|
||||
# @see full.conf for detail config.
|
||||
|
||||
listen 1935;
|
||||
daemon off;
|
||||
srs_log_tank console;
|
||||
vhost __defaultVhost__ {
|
||||
}
|
|
@ -1304,7 +1304,7 @@ bool SrsConfig::get_deamon()
|
|||
{
|
||||
srs_assert(root);
|
||||
|
||||
SrsConfDirective* conf = root->get("deamon");
|
||||
SrsConfDirective* conf = root->get("daemon");
|
||||
if (conf && conf->arg0() == "off") {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue