Skip to content

Commit 69ae45a

Browse files
committed
[fix] fixed 'proxy protocol not working' bug (#239).
1 parent 7779bd6 commit 69ae45a

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

ngx_rtmp.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,6 @@ typedef struct {
170170

171171
ngx_buf_t **free;
172172
ngx_int_t nfree;
173-
174-
unsigned proxy_protocol:1;
175173
} ngx_rtmp_connection_t;
176174

177175

ngx_rtmp_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ ngx_rtmp_init_connection(ngx_connection_t *c)
146146

147147
s->auto_pushed = unix_socket;
148148

149-
if (rconn->proxy_protocol) {
149+
if (ronn->addr_conf->proxy_protocol) {
150150
ngx_rtmp_proxy_protocol(s);
151151

152152
} else {

0 commit comments

Comments
 (0)