mirror of
https://github.com/shtorm-7/sing-box-extended.git
synced 2026-06-09 21:08:15 +03:00
Improve timeouts
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user