mirror of
https://github.com/gravitl/netmaker.git
synced 2025-10-31 04:06:37 +08:00
refactored struct
This commit is contained in:
@@ -210,8 +210,9 @@ func initializeUUID() error {
|
||||
if keyErr != nil {
|
||||
return keyErr
|
||||
}
|
||||
var rsaPublicKey = &rsaPrivKey.PublicKey
|
||||
|
||||
telemetry := models.Telemetry{UUID: uuid.NewString(), TrafficKey: *rsaPrivKey}
|
||||
telemetry := models.Telemetry{UUID: uuid.NewString(), TrafficKeyPriv: *rsaPrivKey, TrafficKeyPub: *rsaPublicKey}
|
||||
telJSON, err := json.Marshal(&telemetry)
|
||||
if err != nil {
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user