winlin

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

@@ -786,6 +786,13 @@ int SrsServer::http_handle() @@ -786,6 +786,13 @@ int SrsServer::http_handle()
786 return ret; 786 return ret;
787 } 787 }
788 #endif 788 #endif
  789 +
  790 +#ifdef SRS_AUTO_HTTP_SERVER
  791 + // for SRS go-sharp to detect the status of HTTP server of SRS HTTP FLV Cluster.
  792 + if ((ret = http_stream_mux->mux.handle("/api/v1/versions", new SrsGoApiVersion())) != ERROR_SUCCESS) {
  793 + return ret;
  794 + }
  795 +#endif
789 796
790 return ret; 797 return ret;
791 } 798 }