mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-27 01:23:00 +08:00
added log
This commit is contained in:
parent
db5fc322b8
commit
3736c152c1
1 changed files with 2 additions and 0 deletions
|
@ -19,10 +19,12 @@ func decryptMsg(msg []byte) ([]byte, error) {
|
|||
}
|
||||
|
||||
func encrypt(node *models.Node, dest string, msg []byte) ([]byte, error) {
|
||||
fmt.Printf("original length: %d \n", len(msg))
|
||||
encrypted := ncutils.BuildMessage(msg, &node.TrafficKeys.Mine)
|
||||
if encrypted == "" {
|
||||
return nil, fmt.Errorf("could not encrypt message")
|
||||
}
|
||||
fmt.Printf("resulting length: %d \n", len(encrypted))
|
||||
return []byte(encrypted), nil
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue