mirror of
https://github.com/caddyserver/caddy.git
synced 2026-06-29 13:21:51 +00:00
Fix formatting of if statement in matchers.go
Signed-off-by: Rasheed Mudasiru <rasheedrtm1@gmail.com>
This commit is contained in:
parent
3fa23cc05a
commit
976d48da5d
1 changed files with 3 additions and 3 deletions
|
|
@ -343,9 +343,9 @@ outer:
|
|||
|
||||
host = repl.ReplaceAll(host, "")
|
||||
if strings.Contains(host, "*") {
|
||||
if host == "*" {
|
||||
return true, nil
|
||||
}
|
||||
if host == "*" {
|
||||
return true, nil
|
||||
}
|
||||
patternParts := strings.Split(host, ".")
|
||||
incomingParts := strings.Split(reqHost, ".")
|
||||
if len(patternParts) != len(incomingParts) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue