check: support full url check and expect resp setting(#195)

This commit is contained in:
nadoo committed 2020-11-20 18:11:25 +08:00
1 parent 38f84a625d
commit 65d606d29c
8 files changed
+199 -146

No files matched your search

+2 -2
View File
@@ -19,11 +19,11 @@ type Proxy struct {
}
// NewProxy returns a new rule proxy.
func NewProxy(mainForwarders []string, mainStrategy *StrategyConfig, rules []*Config) *Proxy {
func NewProxy(mainForwarders []string, mainStrategy *Strategy, rules []*Config) *Proxy {
rd := &Proxy{main: NewFwdrGroup("main", mainForwarders, mainStrategy)}
for _, r := range rules {
group := NewFwdrGroup(r.Name, r.Forward, &r.StrategyConfig)
group := NewFwdrGroup(r.Name, r.Forward, &r.Strategy)
rd.all = append(rd.all, group)
for _, domain := range r.Domain {