Bläddra i källkod

Added skip alias check in HSTS

Toby Chui 8 månader sedan
förälder
incheckning
0c24659b6d
1 ändrade filer med 1 tillägg och 1 borttagningar
  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 {