From: Christophe Jaillet Date: Fri, 15 Feb 2019 15:57:51 +0000 (+0000) Subject: Merge r1851093 from trunk X-Git-Tag: 2.4.39~93 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a46cddf9b016888f86f2b11cb794151afc3c1333;p=thirdparty%2Fapache%2Fhttpd.git Merge r1851093 from trunk * mod_proxy_wstunnel: Fix websocket proxy over UDS. PR: 62932 Submitted by: Reviewed by: jailletc36 (by inspection), jim, ylavic Backported by: jailletc36 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/branches/2.4.x@1853653 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index cd19f087ed4..08fc740db30 100644 --- a/CHANGES +++ b/CHANGES @@ -1,6 +1,9 @@ -*- coding: utf-8 -*- Changes with Apache 2.4.39 + *) mod_proxy_wstunnel: Fix websocket proxy over UDS. + PR 62932 + *) mod_ssl: Don't unset FIPS mode on restart unless it's forced by configuration (SSLFIPS on) and not active by default in OpenSSL. PR 63136. [Yann Ylavic] diff --git a/modules/proxy/mod_proxy_wstunnel.c b/modules/proxy/mod_proxy_wstunnel.c index 9dda010dbcb..1056d5cb726 100644 --- a/modules/proxy/mod_proxy_wstunnel.c +++ b/modules/proxy/mod_proxy_wstunnel.c @@ -77,7 +77,10 @@ static int proxy_wstunnel_canon(request_rec *r, char *url) if (path == NULL) return HTTP_BAD_REQUEST; - apr_snprintf(sport, sizeof(sport), ":%d", port); + if (port != def_port) + apr_snprintf(sport, sizeof(sport), ":%d", port); + else + sport[0] = '\0'; if (ap_strchr_c(host, ':')) { /* if literal IPv6 address */