diff src/http/ngx_http_upstream.c @ 6789:4dea01cf49e8

Upstream: removed ngx_http_upstream_srv_conf_t.default_port. This is an API change.
author Ruslan Ermilov <ru@nginx.com>
date Mon, 17 Oct 2016 14:30:54 +0300
parents 3fa5983b6b44
children 0fba3ed4e7eb
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c
+++ b/src/http/ngx_http_upstream.c
@@ -5763,7 +5763,6 @@ ngx_http_upstream_add(ngx_conf_t *cf, ng
         if (flags & NGX_HTTP_UPSTREAM_CREATE) {
             uscfp[i]->flags = flags;
             uscfp[i]->port = 0;
-            uscfp[i]->default_port = 0;
         }
 
         return uscfp[i];
@@ -5779,7 +5778,6 @@ ngx_http_upstream_add(ngx_conf_t *cf, ng
     uscf->file_name = cf->conf_file->file.name.data;
     uscf->line = cf->conf_file->line;
     uscf->port = u->port;
-    uscf->default_port = u->default_port;
     uscf->no_port = u->no_port;
 
     if (u->naddrs == 1 && (u->port || u->family == AF_UNIX)) {