Skip to content

Commit c08cb70

Browse files
hnakamuragentzh
authored andcommitted
feature: fixed the compilation errors with nginx 1.11.6.
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
1 parent cebe321 commit c08cb70

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngx_http_memc_util.c

+2
Original file line numberDiff line numberDiff line change
@@ -141,12 +141,14 @@ ngx_http_memc_upstream_add(ngx_http_request_t *r, ngx_url_t *url)
141141
continue;
142142
}
143143

144+
#if (nginx_version < 1011006)
144145
if (uscfp[i]->default_port && url->default_port
145146
&& uscfp[i]->default_port != url->default_port)
146147
{
147148
dd("upstream_add: default_port not match");
148149
continue;
149150
}
151+
#endif
150152

151153
return uscfp[i];
152154
}

0 commit comments

Comments
 (0)