mirror of
https://github.com/juanfont/headscale.git
synced 2026-01-23 18:36:36 +00:00
Compare commits
1 commit
v0.28.0-be
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ee127edbf7 |
1 changed files with 0 additions and 5 deletions
|
|
@ -9,7 +9,6 @@ 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"
|
||||
)
|
||||
|
|
@ -151,10 +150,6 @@ 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