--- ../ngx_postgres-1.0rc7/src/ngx_postgres_module.c.orig +++ ../ngx_postgres-1.0rc7/src/ngx_postgres_module.c @@ -1320,12 +1320,14 @@ 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];