diff --git a/trunk/src/app/srs_app_config.cpp b/trunk/src/app/srs_app_config.cpp index 5ef0281cb..ecd09a0ca 100644 --- a/trunk/src/app/srs_app_config.cpp +++ b/trunk/src/app/srs_app_config.cpp @@ -55,6 +55,9 @@ using namespace std; using namespace _srs_internal; +// the version to identify the core. +const char* _srs_version = "XCORE-"RTMP_SIG_SRS_SERVER; + #define SRS_WIKI_URL_LOG "https://github.com/ossrs/srs/wiki/v1_CN_SrsLog" // when user config an invalid value, macros to perfer true or false. @@ -1930,7 +1933,7 @@ int SrsConfig::parse_options(int argc, char** argv) } // first hello message. - srs_trace(RTMP_SIG_SRS_SERVER); + srs_trace(_srs_version); if (config_file.empty()) { ret = ERROR_SYSTEM_CONFIG_INVALID; diff --git a/trunk/src/main/srs_main_server.cpp b/trunk/src/main/srs_main_server.cpp index 998d6464b..619396c1d 100644 --- a/trunk/src/main/srs_main_server.cpp +++ b/trunk/src/main/srs_main_server.cpp @@ -58,6 +58,8 @@ ISrsThreadContext* _srs_context = new SrsThreadContext(); // app module. SrsConfig* _srs_config = new SrsConfig(); SrsServer* _srs_server = new SrsServer(); +// version of srs, which can grep keyword "XCORE" +extern const char* _srs_version; /** * show the features by macro, the actual macro values.