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:
parent
9e342f41a4
commit
f510a3d6fb
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue