1
0
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:
Josef Citrine 2021-10-01 13:40:55 +01:00
parent 137b327795
commit a10013d80b

View File

@ -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"),
})