mirror of
https://github.com/juanfont/headscale.git
synced 2025-08-01 13:46:49 +02:00
Show subnet in key list
This commit is contained in:
parent
137b327795
commit
a10013d80b
@ -58,7 +58,7 @@ var listPreAuthKeys = &cobra.Command{
|
||||
return
|
||||
}
|
||||
|
||||
d := pterm.TableData{{"ID", "Key", "Reusable", "Ephemeral", "Expiration", "Created"}}
|
||||
d := pterm.TableData{{"ID", "Key", "Reusable", "Ephemeral", "Expiration", "Subnet", "Created"}}
|
||||
for _, k := range *keys {
|
||||
expiration := "-"
|
||||
if k.Expiration != nil {
|
||||
@ -78,6 +78,7 @@ var listPreAuthKeys = &cobra.Command{
|
||||
reusable,
|
||||
strconv.FormatBool(k.Ephemeral),
|
||||
expiration,
|
||||
k.Subnet,
|
||||
k.CreatedAt.Format("2006-01-02 15:04:05"),
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user