mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-06-28 16:09:00 +02:00
App name was not copied when creating relay
This commit is contained in:
parent
f62a083806
commit
098ded3e87
|
@ -499,6 +499,7 @@ ngx_rtmp_relay_create_connection(ngx_rtmp_conf_ctx_t *cctx, ngx_str_t* name,
|
||||||
rctx->session = rs;
|
rctx->session = rs;
|
||||||
ngx_rtmp_set_ctx(rs, rctx, ngx_rtmp_relay_module);
|
ngx_rtmp_set_ctx(rs, rctx, ngx_rtmp_relay_module);
|
||||||
ngx_str_set(&rs->flashver, "ngx-local-relay");
|
ngx_str_set(&rs->flashver, "ngx-local-relay");
|
||||||
|
ngx_cpymem(&rs->app, &rctx->app, sizeof(rctx->app));
|
||||||
|
|
||||||
#if (NGX_STAT_STUB)
|
#if (NGX_STAT_STUB)
|
||||||
(void) ngx_atomic_fetch_add(ngx_stat_active, 1);
|
(void) ngx_atomic_fetch_add(ngx_stat_active, 1);
|
||||||
|
|
Loading…
Reference in a new issue