mirror of
https://github.com/SagerNet/sing-box.git
synced 2025-04-03 03:47:37 +03:00
tun: Set address sets to routes
This commit is contained in:
parent
96fdf59ee4
commit
7aac801ccd
8 changed files with 209 additions and 86 deletions
|
@ -363,7 +363,6 @@ func (r *Router) Start(stage adapter.StartStage) error {
|
|||
return E.Cause(err, "initialize DNS server[", i, "]")
|
||||
}
|
||||
}
|
||||
case adapter.StartStatePostStart:
|
||||
var cacheContext *adapter.HTTPStartContext
|
||||
if len(r.ruleSets) > 0 {
|
||||
monitor.Start("initialize rule-set")
|
||||
|
@ -419,6 +418,7 @@ func (r *Router) Start(stage adapter.StartStage) error {
|
|||
}
|
||||
}
|
||||
}
|
||||
case adapter.StartStatePostStart:
|
||||
for i, rule := range r.rules {
|
||||
monitor.Start("initialize rule[", i, "]")
|
||||
err := rule.Start()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue