mirror of
https://github.com/phishingclub/phishingclub.git
synced 2026-10-12 18:17:27 +02:00
proxy rewrite with no replace is equal to empty
Signed-off-by: Ronni Skansing <rskansing@gmail.com>
This commit is contained in:
1 parent
c8f4404a40
commit
dce09e7a24
1 file changed
-3
@@ -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