Skip to content

Commit

Permalink
feature: fixed the compilation errors with nginx 1.11.6+.
Browse files Browse the repository at this point in the history
Signed-off-by: Yichun Zhang (agentzh) <agentzh@gmail.com>
  • Loading branch information
cryptofuture authored and agentzh committed Aug 8, 2017
1 parent 7950a25 commit 07216c2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ngx_postgres_module.c
Expand Up @@ -1320,12 +1320,14 @@ ngx_postgres_find_upstream(ngx_http_request_t *r, ngx_url_t *url)
continue;
}

#if (nginx_version < 1011006)
if (uscfp[i]->default_port && url->default_port
&& (uscfp[i]->default_port != url->default_port))
{
dd("default_port doesn't match");
continue;
}
#endif

dd("returning");
return uscfp[i];
Expand Down

0 comments on commit 07216c2

Please sign in to comment.