mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-10-27 13:36:57 +00:00
Improve network reset
This commit is contained in:
@@ -85,6 +85,10 @@ func (t *TProxy) Start(stage adapter.StartStage) error {
|
||||
return err
|
||||
}
|
||||
|
||||
func (t *TProxy) InterfaceUpdated() {
|
||||
t.udpNat.Purge()
|
||||
}
|
||||
|
||||
func (t *TProxy) Close() error {
|
||||
_ = t.udpNat.Close()
|
||||
return t.listener.Close()
|
||||
|
||||
Reference in New Issue
Block a user