mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-01 22:29:32 +02:00
Update ngx_rtmp_core_module.c
clean useless code fragments.
This commit is contained in:
parent
c3237ae747
commit
a48dadfbc1
|
@ -500,8 +500,7 @@ ngx_rtmp_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||||
in_port_t port;
|
in_port_t port;
|
||||||
ngx_str_t *value;
|
ngx_str_t *value;
|
||||||
ngx_url_t u;
|
ngx_url_t u;
|
||||||
ngx_uint_t i, m;
|
ngx_uint_t i;
|
||||||
ngx_module_t **modules;
|
|
||||||
struct sockaddr *sa;
|
struct sockaddr *sa;
|
||||||
ngx_rtmp_listen_t *ls;
|
ngx_rtmp_listen_t *ls;
|
||||||
struct sockaddr_in *sin;
|
struct sockaddr_in *sin;
|
||||||
|
@ -584,17 +583,6 @@ ngx_rtmp_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
||||||
ls->wildcard = u.wildcard;
|
ls->wildcard = u.wildcard;
|
||||||
ls->ctx = cf->ctx;
|
ls->ctx = cf->ctx;
|
||||||
|
|
||||||
#if defined(nginx_version) && nginx_version >= 1009011
|
|
||||||
modules = cf->cycle->modules;
|
|
||||||
#else
|
|
||||||
modules = ngx_modules;
|
|
||||||
#endif
|
|
||||||
for (m = 0; modules[m]; m++) {
|
|
||||||
if (modules[m]->type != NGX_RTMP_MODULE) {
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for (i = 2; i < cf->args->nelts; i++) {
|
for (i = 2; i < cf->args->nelts; i++) {
|
||||||
|
|
||||||
if (ngx_strcmp(value[i].data, "bind") == 0) {
|
if (ngx_strcmp(value[i].data, "bind") == 0) {
|
||||||
|
|
Loading…
Reference in a new issue