diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 31b16c916..28731b872 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -1359,6 +1359,9 @@ int SrsConfig::parse_options(int argc, char** argv) exit(0); } + // first hello message. + srs_trace(RTMP_SIG_SRS_SERVER); + if (config_file.empty()) { ret = ERROR_SYSTEM_CONFIG_INVALID; srs_error("config file not specified, see help: %s -h, ret=%d", argv[0], ret); diff --git a/trunk/src/main/srs_main_server.cpp b/trunk/src/main/srs_main_server.cpp index 1fe712af5..dddfef503 100644 --- a/trunk/src/main/srs_main_server.cpp +++ b/trunk/src/main/srs_main_server.cpp @@ -248,9 +248,6 @@ void check_macro_features() int main(int argc, char** argv) { int ret = ERROR_SUCCESS; - - // first hello message. - srs_trace(RTMP_SIG_SRS_SERVER); // TODO: support both little and big endian. srs_assert(srs_is_little_endian());