1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00

add /api/v1/versions for http server for go-sharp to detect.

This commit is contained in:
winlin 2015-05-24 13:01:23 +08:00
parent 9e342f41a4
commit f510a3d6fb

View file

@ -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;
}