Send StableID
This commit is contained in:
parent
a20fffc3e9
commit
90759688ca
1 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,7 @@ import (
|
|||
"fmt"
|
||||
"log"
|
||||
"sort"
|
||||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/jinzhu/gorm/dialects/postgres"
|
||||
|
@ -82,6 +83,7 @@ func (m Machine) toNode() (*tailcfg.Node, error) {
|
|||
|
||||
n := tailcfg.Node{
|
||||
ID: tailcfg.NodeID(m.ID), // this is the actual ID
|
||||
StableID: tailcfg.StableNodeID(strconv.FormatUint(m.ID, 10)), // in headscale, unlike tailcontrol server, IDs are permantent
|
||||
Name: "",
|
||||
User: 1,
|
||||
Key: tailcfg.NodeKey(nKey),
|
||||
|
|
Loading…
Reference in a new issue