refactored struct

This commit is contained in:
0xdcarns
2022-01-29 09:37:53 -05:00
parent 3483e45beb
commit ac632a75b7
7 changed files with 29 additions and 17 deletions

View File

@@ -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