mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-25 21:46:55 +08:00
not sure what's going on
This commit is contained in:
parent
2b5c5afeb4
commit
ef20139ce1
2 changed files with 1 additions and 2 deletions
|
|
@ -233,6 +233,7 @@ func CreateNode(node *models.Node) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
logger.Log(0, "INSERTING: ", node.ID, fmt.Sprintf("pubkey? %v", node.TrafficKeys.Server))
|
||||
err = database.Insert(node.ID, string(nodebytes), database.NODES_TABLE_NAME)
|
||||
if err != nil {
|
||||
return err
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ package logic
|
|||
import (
|
||||
"crypto/rsa"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
// RetrieveTrafficKey - retrieves public key based on node
|
||||
|
|
@ -14,7 +13,6 @@ func RetrieveTrafficKey() (rsa.PrivateKey, error) {
|
|||
}
|
||||
var key rsa.PrivateKey
|
||||
json.Unmarshal([]byte(telRecord.TrafficKey), &key)
|
||||
fmt.Printf("retrieved key: %v \n", key.PublicKey)
|
||||
|
||||
return key, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue