WTF is this

This commit is contained in:
世界
2024-06-24 09:49:15 +08:00
parent 90b63d69b1
commit fb7abb4822
41 changed files with 365 additions and 529 deletions

View File

@@ -45,7 +45,9 @@ func (s *Box) startOutbounds() error {
}
started[outboundTag] = true
canContinue = true
if starter, isStarter := outboundToStart.(common.Starter); isStarter {
if starter, isStarter := outboundToStart.(interface {
Start() error
}); isStarter {
monitor.Start("initialize outbound/", outboundToStart.Type(), "[", outboundTag, "]")
err := starter.Start()
monitor.Finish()