Explorar o código

Added skip alias check in HSTS

Toby Chui hai 8 meses
pai
achega
0c24659b6d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      mod/dynamicproxy/customHeader.go

+ 1 - 1
mod/dynamicproxy/customHeader.go

@@ -51,7 +51,7 @@ func (ept *ProxyEndpoint) SplitInboundOutboundHeaders() ([][]string, [][]string)
 
 	//Check if the endpoint require HSTS headers
 	if ept.HSTSMaxAge > 0 {
-		if ept.ContainsWildcardName(false) {
+		if ept.ContainsWildcardName(true) {
 			//Endpoint listening domain includes wildcards.
 			downstreamHeaders[downstreamHeaderCounter] = []string{"Strict-Transport-Security", "max-age=" + strconv.Itoa(int(ept.HSTSMaxAge)) + "; includeSubdomains"}
 		} else {