Skip to content

Commit bc6217e

Browse files
committed
Fix build with nginx 1.11.6
1 parent 7950a25 commit bc6217e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: src/ngx_postgres_module.c

+2
Original file line numberDiff line numberDiff line change
@@ -1320,13 +1320,15 @@ 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
}
13291330

1331+
#endif
13301332
dd("returning");
13311333
return uscfp[i];
13321334
}

0 commit comments

Comments
 (0)