mirror of
https://github.com/juanfont/headscale.git
synced 2026-01-23 18:36:36 +00:00
Compare commits
No commits in common. "main" and "v0.28.0-beta.2" have entirely different histories.
main
...
v0.28.0-be
1 changed files with 5 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ import (
|
|||
v1 "github.com/juanfont/headscale/gen/go/headscale/v1"
|
||||
"github.com/prometheus/common/model"
|
||||
"github.com/pterm/pterm"
|
||||
"github.com/rs/zerolog/log"
|
||||
"github.com/spf13/cobra"
|
||||
"google.golang.org/protobuf/types/known/timestamppb"
|
||||
)
|
||||
|
|
@ -150,6 +151,10 @@ var createPreAuthKeyCmd = &cobra.Command{
|
|||
|
||||
expiration := time.Now().UTC().Add(time.Duration(duration))
|
||||
|
||||
log.Trace().
|
||||
Dur("expiration", time.Duration(duration)).
|
||||
Msg("expiration has been set")
|
||||
|
||||
request.Expiration = timestamppb.New(expiration)
|
||||
|
||||
ctx, client, conn, cancel := newHeadscaleCLIWithConfig()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue