Improve network reset

This commit is contained in:
世界
2026-08-30 17:41:43 +08:00
parent 3afd290278
commit e4c8b49eaf
26 changed files with 250 additions and 62 deletions
+7
View File
@@ -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,