Skip to content

Commit 9218647

Browse files
authored
[fix] fixed push failure bug when '$' contained in url (#211).
1 parent a2677f6 commit 9218647

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ngx_rtmp_relay_module.c

+3
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,9 @@ ngx_rtmp_relay_create_remote_ctx(ngx_rtmp_session_t *s, ngx_str_t *name,
602602
target->url.uri_part = 1;
603603
target->url.url = url;
604604

605+
target->url.addrs = NULL;
606+
target->url.naddrs = 0;
607+
605608
if(ngx_parse_url(s->connection->pool, &target->url) != NGX_OK) {
606609
ngx_log_error(NGX_LOG_ERR, s->connection->log, 0,
607610
"relay: invalid url='%V'", &target->url.url);

0 commit comments

Comments
 (0)