mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-19 15:54:24 +00:00
Improve network reset
This commit is contained in:
@@ -505,6 +505,13 @@ func (t *Inbound) updateRouteAddressSet(it adapter.RuleSet) {
|
||||
t.routeExcludeAddressSet = nil
|
||||
}
|
||||
|
||||
func (t *Inbound) InterfaceUpdated() {
|
||||
tunStack := t.tunStack
|
||||
if tunStack != nil {
|
||||
tunStack.ResetNetwork()
|
||||
}
|
||||
}
|
||||
|
||||
func (t *Inbound) Close() error {
|
||||
return common.Close(
|
||||
t.tunStack,
|
||||
|
||||
Reference in New Issue
Block a user