Skip to content

Commit 07216c2

Browse files
cryptofutureagentzh
authored andcommitted
feature: fixed the compilation errors with nginx 1.11.6+.
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
1 parent 7950a25 commit 07216c2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/ngx_postgres_module.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1320,12 +1320,14 @@ ngx_postgres_find_upstream(ngx_http_request_t *r, ngx_url_t *url)
13201320
continue;
13211321
}
13221322

1323+
#if (nginx_version < 1011006)
13231324
if (uscfp[i]->default_port && url->default_port
13241325
&& (uscfp[i]->default_port != url->default_port))
13251326
{
13261327
dd("default_port doesn't match");
13271328
continue;
13281329
}
1330+
#endif
13291331

13301332
dd("returning");
13311333
return uscfp[i];

0 commit comments

Comments
 (0)