diff options
| author | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-27 00:21:50 +0200 |
|---|---|---|
| committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-04-28 00:45:03 +0200 |
| commit | 5115c24f94eab7d3be8ad11e59c82494c05ce3a2 (patch) | |
| tree | f46e80df73a4f93eb731f1b47978814dee5dbb1f /main/nginx/ipv6.patch | |
| parent | fda86691c22f67327a08e3b68ae3ead7fc1b6f9c (diff) | |
| download | aports-5115c24f94eab7d3be8ad11e59c82494c05ce3a2.tar.bz2 aports-5115c24f94eab7d3be8ad11e59c82494c05ce3a2.tar.xz | |
main/nginx: upgrade to 1.12.0
Upgraded modules:
* lua-nginx-module to 0.10.8
* nchan to 1.1.4
* nginx-rtmp-module to 1.1.11
Diffstat (limited to 'main/nginx/ipv6.patch')
| -rw-r--r-- | main/nginx/ipv6.patch | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/main/nginx/ipv6.patch b/main/nginx/ipv6.patch deleted file mode 100644 index 9b05f8ff83..0000000000 --- a/main/nginx/ipv6.patch +++ /dev/null @@ -1,42 +0,0 @@ ---- a/src/http/ngx_http_core_module.c -+++ b/src/http/ngx_http_core_module.c -@@ -2442,7 +2442,11 @@ - ngx_uint_t i; - ngx_conf_t pcf; - ngx_http_module_t *module; -+#if (NGX_HAVE_INET6) -+ struct sockaddr_in6 *sin6; -+#else - struct sockaddr_in *sin; -+#endif - ngx_http_conf_ctx_t *ctx, *http_ctx; - ngx_http_listen_opt_t lsopt; - ngx_http_core_srv_conf_t *cscf, **cscfp; -@@ -2526,6 +2530,19 @@ - if (rv == NGX_CONF_OK && !cscf->listen) { - ngx_memzero(&lsopt, sizeof(ngx_http_listen_opt_t)); - -+#if (NGX_HAVE_INET6) -+ sin6 = &lsopt.u.sockaddr_in6; -+ -+ sin6->sin6_family = AF_INET6; -+#if (NGX_WIN32) -+ sin6->sin6_port = htons(80); -+#else -+ sin6->sin6_port = htons((getuid() == 0) ? 80 : 8000); -+#endif -+ sin6->sin6_addr = in6addr_any; -+ -+ lsopt.socklen = sizeof(struct sockaddr_in6); -+#else - sin = &lsopt.u.sockaddr_in; - - sin->sin_family = AF_INET; -@@ -2537,6 +2554,7 @@ - sin->sin_addr.s_addr = INADDR_ANY; - - lsopt.socklen = sizeof(struct sockaddr_in); -+#endif - - lsopt.backlog = NGX_LISTEN_BACKLOG; - lsopt.rcvbuf = -1; |
