Improve timeouts

This commit is contained in:
世界
2024-11-26 11:43:45 +08:00
parent ec2cba84dc
commit 0b1f94bf93
8 changed files with 122 additions and 355 deletions

View File

@@ -85,10 +85,15 @@ func (t *TProxy) Start(stage adapter.StartStage) error {
return E.Cause(err, "configure tproxy UDP listener")
}
}
err = t.udpNat.Start()
if err != nil {
return err
}
return nil
}
func (t *TProxy) Close() error {
t.udpNat.Close()
return t.listener.Close()
}