fix duplicated routes not being shown

This commit is contained in:
yusing
2025-02-14 05:48:28 +08:00
parent 816166a30a
commit a319957f3e
4 changed files with 8 additions and 2 deletions

View File

@@ -163,7 +163,7 @@ func (cfg *AgentConfig) Name() string {
}
func (cfg *AgentConfig) String() string {
return "agent@" + cfg.Addr
return cfg.name + "@" + cfg.Addr
}
func (cfg *AgentConfig) MarshalJSON() ([]byte, error) {