Skip to content

Commit 0560059

Browse files
committed
[FIX] correct build on nginx >= 1.11.6
Merge FRiCKLE#52
2 parents 666f862 + bc6217e commit 0560059

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
@@ -1309,13 +1309,15 @@ ngx_postgres_find_upstream(ngx_http_request_t *r, ngx_url_t *url)
13091309
continue;
13101310
}
13111311

1312+
#if (nginx_version < 1011006)
13121313
if (uscfp[i]->default_port && url->default_port
13131314
&& (uscfp[i]->default_port != url->default_port))
13141315
{
13151316
dd("default_port doesn't match");
13161317
continue;
13171318
}
13181319

1320+
#endif
13191321
dd("returning");
13201322
return uscfp[i];
13211323
}

0 commit comments

Comments
 (0)