TUN inbound: Better "autoOutboundsInterface": "auto" (#6035)

https://github.com/XTLS/Xray-core/pull/6035#issuecomment-4336755860

Fixes https://github.com/XTLS/Xray-core/issues/6030
This commit is contained in:
LjhAUMEM
2026-05-02 20:18:25 +08:00
committed by GitHub
parent 16568314d8
commit 52cf9ef5d6
2 changed files with 60 additions and 16 deletions
-3
View File
@@ -177,9 +177,6 @@ func (t *WindowsTun) Start() error {
if updater != nil {
t.changeCallback, err = winipcfg.RegisterInterfaceChangeCallback(func(notificationType winipcfg.MibNotificationType, iface *winipcfg.MibIPInterfaceRow) {
if notificationType != winipcfg.MibDeleteInstance {
return
}
updater.Update()
})
if err != nil {