fixed egress to use id

This commit is contained in:
0xdcarns
2022-01-11 10:58:20 -05:00
parent e2ffcd4b3c
commit 9af3688b24
2 changed files with 5 additions and 5 deletions

View File

@@ -55,6 +55,7 @@ func AutoLogin(client nodepb.NodeServiceClient, network string) error {
node := models.Node{
Password: pass,
MacAddress: cfg.Node.MacAddress,
ID: cfg.Node.ID,
Network: network,
}
data, err := json.Marshal(&node)
@@ -64,6 +65,7 @@ func AutoLogin(client nodepb.NodeServiceClient, network string) error {
login := &nodepb.Object{
Data: string(data),
Type: nodepb.NODE_TYPE,
}
// RPC call
res, err := client.Login(context.TODO(), login)