From f510a3d6fba2de2c9d82829219f59085efd5af86 Mon Sep 17 00:00:00 2001 From: winlin Date: Sun, 24 May 2015 13:01:23 +0800 Subject: [PATCH] add /api/v1/versions for http server for go-sharp to detect. --- trunk/src/app/srs_app_server.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/trunk/src/app/srs_app_server.cpp b/trunk/src/app/srs_app_server.cpp index 5634db625..cdea9cd59 100644 --- a/trunk/src/app/srs_app_server.cpp +++ b/trunk/src/app/srs_app_server.cpp @@ -786,6 +786,13 @@ int SrsServer::http_handle() return ret; } #endif + +#ifdef SRS_AUTO_HTTP_SERVER + // for SRS go-sharp to detect the status of HTTP server of SRS HTTP FLV Cluster. + if ((ret = http_stream_mux->mux.handle("/api/v1/versions", new SrsGoApiVersion())) != ERROR_SUCCESS) { + return ret; + } +#endif return ret; }