mirror of
https://github.com/zotanmew/nginx-rtmp-module.git
synced 2024-04-28 18:53:45 +02:00
fixed compilation with old nginx
This commit is contained in:
parent
8c2229cce5
commit
812e2fd7b1
|
@ -6,6 +6,7 @@
|
||||||
|
|
||||||
#include <ngx_config.h>
|
#include <ngx_config.h>
|
||||||
#include <ngx_core.h>
|
#include <ngx_core.h>
|
||||||
|
#include <nginx.h>
|
||||||
#include "ngx_rtmp_proxy_protocol.h"
|
#include "ngx_rtmp_proxy_protocol.h"
|
||||||
|
|
||||||
|
|
||||||
|
@ -164,8 +165,11 @@ skip:
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
len = ngx_sock_ntop(addr.sockaddr, addr.socklen, text,
|
len = ngx_sock_ntop(addr.sockaddr,
|
||||||
NGX_SOCKADDR_STRLEN, 0);
|
#if (nginx_version >= 1005003)
|
||||||
|
addr.socklen,
|
||||||
|
#endif
|
||||||
|
text, NGX_SOCKADDR_STRLEN, 0);
|
||||||
if (len == 0) {
|
if (len == 0) {
|
||||||
goto failed;
|
goto failed;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue