mirror of
https://github.com/sigcn/pg.git
synced 2025-09-27 04:30:13 +08:00
pgcli/vpn/ipc: compact endpoints
This commit is contained in:
@@ -3,6 +3,7 @@ package client
|
||||
import (
|
||||
"cmp"
|
||||
"fmt"
|
||||
"slices"
|
||||
"strings"
|
||||
|
||||
"github.com/jedib0t/go-pretty/v6/table"
|
||||
@@ -24,6 +25,7 @@ func PrintNodeInfo() error {
|
||||
for _, addr := range nodeInfo.NATInfo.Addrs {
|
||||
addrs = append(addrs, addr.String())
|
||||
}
|
||||
addrs = slices.Compact(addrs)
|
||||
|
||||
tw.AppendRows([]table.Row{
|
||||
{"ID", nodeInfo.ID},
|
||||
|
Reference in New Issue
Block a user