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

@@ -72,10 +72,15 @@ func (i *Inbound) Start(stage adapter.StartStage) error {
if stage != adapter.StartStateStart {
return nil
}
return i.listener.Start()
err := i.listener.Start()
if err != nil {
return err
}
return i.udpNat.Start()
}
func (i *Inbound) Close() error {
i.udpNat.Close()
return i.listener.Close()
}