fix: link convert to output.
Some checks failed
Coverage CI / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
Ubuntu CI / build (push) Has been cancelled

This commit is contained in:
Daniel Ding
2025-12-08 16:53:56 +08:00
parent 87e2fe8fb0
commit a2ac57b2fc
7 changed files with 39 additions and 21 deletions

View File

@@ -601,7 +601,6 @@ func (w *WorkerImpl) Start(v api.SwitchApi) {
if cfg.Bridge != nil {
w.toACL(cfg.Bridge.Name)
for _, output := range cfg.Outputs {
output.GenName()
w.addOutput(cfg.Bridge.Name, output)
}
}
@@ -1248,7 +1247,7 @@ func (w *WorkerImpl) AddOutput(data schema.Output) {
w.out.Info("WorkerImple.AddOutput %s already existed", output.Id())
return
}
output.GenName()
output.Correct()
w.addOutput(w.cfg.Bridge.Name, output)
}