TUN inbound: Closable by AlwaysOnInboundHandler (#5860)

https://github.com/XTLS/Xray-core/pull/5860#issuecomment-4193477738
This commit is contained in:
Rynnya
2026-04-07 11:19:03 +03:00
committed by Fangliding
parent 6c4008edad
commit 6a1a13b797
2 changed files with 8 additions and 0 deletions

View File

@@ -186,6 +186,7 @@ func (h *AlwaysOnInboundHandler) Close() error {
errs = append(errs, worker.Close())
}
errs = append(errs, h.mux.Close())
errs = append(errs, common.Close(h.proxy))
if err := errors.Combine(errs...); err != nil {
return errors.New("failed to close all resources").Base(err)
}