mirror of
https://github.com/ossrs/srs.git
synced 2025-03-09 15:49:59 +00:00
fix bug of no http-server feature
This commit is contained in:
parent
d28458d5fa
commit
52263457bf
5 changed files with 19 additions and 0 deletions
|
@ -440,7 +440,13 @@ int SrsServer::accept_client(SrsListenerType type, st_netfd_t client_stfd)
|
|||
} else if (type == SrsListenerHttpApi) {
|
||||
conn = new SrsHttpApi(this, client_stfd);
|
||||
} else if (type == SrsListenerHttpStream) {
|
||||
#ifdef SRS_HTTP_SERVER
|
||||
conn = new SrsHttpConn(this, client_stfd);
|
||||
#else
|
||||
srs_warn("close http client for server not support http-server");
|
||||
srs_close_stfd(client_stfd);
|
||||
return ret;
|
||||
#endif
|
||||
} else {
|
||||
// TODO: FIXME: handler others
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue