winlin

fix bug of get daemon

  1 +# main config for srs.
  2 +# @see full.conf for detail config.
  3 +
  4 +listen 1935;
  5 +daemon off;
  6 +srs_log_tank console;
  7 +vhost __defaultVhost__ {
  8 +}
@@ -1304,7 +1304,7 @@ bool SrsConfig::get_deamon() @@ -1304,7 +1304,7 @@ bool SrsConfig::get_deamon()
1304 { 1304 {
1305 srs_assert(root); 1305 srs_assert(root);
1306 1306
1307 - SrsConfDirective* conf = root->get("deamon"); 1307 + SrsConfDirective* conf = root->get("daemon");
1308 if (conf && conf->arg0() == "off") { 1308 if (conf && conf->arg0() == "off") {
1309 return false; 1309 return false;
1310 } 1310 }