mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-05 16:57:51 +08:00
fixed egress to use id
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user