fix(inbounds): show remark first, else inbound tag, in client labels

Revert formatInboundLabel to the pre-#5151 behavior: display the inbound
remark when set, otherwise the inbound tag, instead of "tag (remark)".
Affects the Attach clients / Attached inbounds views and client lists.
Routing keeps its own tag (remark) formatting.
This commit is contained in:
MHSanaei
2026-06-12 20:37:37 +02:00
parent cd46730bb9
commit 41cb0b8ae7
2 changed files with 5 additions and 8 deletions
+1 -1
View File
@@ -418,7 +418,7 @@ func GetApiToken(getApiToken bool) {
if len(tokens) > 0 {
fmt.Printf("There are %d API token(s) configured. Existing tokens cannot be retrieved in plaintext because only hashes are stored.\n", len(tokens))
fmt.Println("If you have lost your token, you can manage and generate new tokens through the Panel UI (Settings -> API Tokens).")
// Create a new fallback token so the CLI is still useful without the UI
fallbackName := fmt.Sprintf("cli-fallback-%d", time.Now().Unix())
created, err := apiTokenService.Create(fallbackName)