diff --git a/modules/proxy/proxy_util.c b/modules/proxy/proxy_util.c index bd9048ad07..f67e0a7ae2 100644 --- a/modules/proxy/proxy_util.c +++ b/modules/proxy/proxy_util.c @@ -2191,8 +2191,9 @@ ap_proxy_determine_connection(apr_pool_t *p, request_rec *r, * to check host and port on the conn and be careful about * spilling the cached addr from the worker. */ - if (!conn->hostname || !worker->s->is_address_reusable || - worker->s->disablereuse || *worker->s->uds_path) { + if (!(*worker->s->uds_path) && + (!conn->hostname || !worker->s->is_address_reusable || + worker->s->disablereuse)) { if (proxyname) { conn->hostname = apr_pstrdup(conn->pool, proxyname); conn->port = proxyport;