mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-09-20 06:46:19 +08:00
CLOUDFLARE: Fix another redirect bug (#3034)
This commit is contained in:
parent
a091da9067
commit
937c0dc46c
|
@ -149,7 +149,7 @@ func makeRuleFromPattern(pattern, replacement string, temporary bool) (string, s
|
|||
expr = fmt.Sprintf(`concat("https://%s", http.request.uri.path)`, rhost)
|
||||
|
||||
} else if strings.Count(host, `*`) == 1 && strings.Count(path, `*`) == 1 &&
|
||||
strings.Count(replacement, `$`) == 1 && strings.HasPrefix(rpath, `/$2`) {
|
||||
strings.Count(replacement, `$`) == 1 && strings.HasSuffix(rpath, `/$2`) {
|
||||
// https://careers.stackoverflow.com/$2
|
||||
expr = fmt.Sprintf(`concat("https://%s", http.request.uri.path)`, rhost)
|
||||
|
||||
|
|
Loading…
Reference in a new issue