mirror of
https://github.com/SagerNet/sing-tun.git
synced 2025-04-03 20:07:40 +03:00
Fix create rules
This commit is contained in:
parent
ef56e9957f
commit
0ea2fbc278
3 changed files with 4 additions and 4 deletions
|
@ -171,7 +171,7 @@ func (t *NativeTun) rules() []*netlink.Rule {
|
|||
var it *netlink.Rule
|
||||
excludeRanges := t.options.ExcludedRanges()
|
||||
priority := 9000
|
||||
nopPriority := priority + 10*(len(excludeRanges)/10+1)
|
||||
nopPriority := priority + 10*(len(excludeRanges)/10+2)
|
||||
|
||||
for _, excludeRange := range t.options.ExcludedRanges() {
|
||||
it = netlink.NewRule()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue