mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-05-08 22:01:07 +02:00
fixed bad-looking unix socket client name
This commit is contained in:
parent
07cd2644c8
commit
3492892450
|
@ -145,6 +145,11 @@ ngx_rtmp_auto_push_init_process(ngx_cycle_t *cycle)
|
|||
|
||||
*ls = *lss;
|
||||
|
||||
/* Disable unix socket client address extraction
|
||||
* from accept call
|
||||
* Nginx generates bad addr_text with this enabled */
|
||||
ls->addr_ntop = 0;
|
||||
|
||||
ls->socklen = sizeof(struct sockaddr_un);
|
||||
sun = ngx_pcalloc(cycle->pool, ls->socklen);
|
||||
ls->sockaddr = (struct sockaddr *) sun;
|
||||
|
|
|
@ -113,8 +113,8 @@ ngx_rtmp_init_connection(ngx_connection_t *c)
|
|||
}
|
||||
}
|
||||
|
||||
/*ngx_log_error(NGX_LOG_INFO, c->log, 0, "*%ui client connected",
|
||||
c->number, &c->addr_text);*/
|
||||
ngx_log_error(NGX_LOG_INFO, c->log, 0, "*%ui client connected '%V'",
|
||||
c->number, &c->addr_text);
|
||||
|
||||
s = ngx_rtmp_init_session(c, addr_conf);
|
||||
|
||||
|
|
Loading…
Reference in a new issue