mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
rule: move to separate package
This commit is contained in:
1 parent
3a8af82f87
commit
978029bd2b
6 files changed
+101
-82
No files matched your search
@@ -9,6 +9,7 @@ import (
|
||||
"github.com/nadoo/glider/common/log"
|
||||
"github.com/nadoo/glider/dns"
|
||||
"github.com/nadoo/glider/proxy"
|
||||
"github.com/nadoo/glider/rule"
|
||||
"github.com/nadoo/glider/strategy"
|
||||
|
||||
_ "github.com/nadoo/glider/proxy/http"
|
||||
@@ -35,7 +36,7 @@ func main() {
|
||||
}
|
||||
}
|
||||
|
||||
dialer := NewRuleDialer(conf.rules, strategy.NewDialer(conf.Forward, &conf.StrategyConfig))
|
||||
dialer := rule.NewDialer(conf.rules, strategy.NewDialer(conf.Forward, &conf.StrategyConfig))
|
||||
ipsetM, _ := NewIPSetManager(conf.IPSet, conf.rules)
|
||||
|
||||
// DNS Server
|
||||
|
||||
Reference in new issue
Block a user