refactor: WireGuard endpoint

This commit is contained in:
世界
2024-11-30 12:26:29 +08:00
parent 77e4d86fa0
commit 40b2dde5c5
91 changed files with 2179 additions and 677 deletions
+4 -1
View File
@@ -54,7 +54,10 @@ func NewInbound(ctx context.Context, router adapter.Router, logger log.ContextLo
return inbound, nil
}
func (h *Inbound) Start() error {
func (h *Inbound) Start(stage adapter.StartStage) error {
if stage != adapter.StartStateStart {
return nil
}
return h.listener.Start()
}