mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-02-12 16:12:44 +00:00
proxy rewrite with no replace is equal to empty
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
@@ -1189,9 +1189,6 @@ func (m *Proxy) validateReplaceRules(replaceRules []ProxyServiceReplaceRule) err
|
||||
"proxyConfig",
|
||||
)
|
||||
}
|
||||
if replace.Replace == "" {
|
||||
return validate.WrapErrorWithField(errors.New("replace rule 'replace' is required for regex engine"), "proxyConfig")
|
||||
}
|
||||
} else if engine == "dom" {
|
||||
if replace.Find == "" {
|
||||
return validate.WrapErrorWithField(errors.New("replace rule 'find' is required for dom engine"), "proxyConfig")
|
||||
|
||||
Reference in New Issue
Block a user