chore: send error count in heartbeat, not list

This commit is contained in:
0x1a8510f2 2023-04-16 21:20:20 +01:00
parent 30a5143294
commit f0775e3f92
Signed by: 0x1a8510f2
GPG Key ID: 1C692E355D76775D
2 changed files with 3 additions and 3 deletions

View File

@ -29,6 +29,6 @@ type PacketHeartbeat struct {
// The ID of the user under which Wraith is running.
HostUserId string
// A list of errors the Wraith has encountered.
Errors []error
// A count of errors the Wraith has encountered.
Errors int
}

View File

@ -218,7 +218,7 @@ func (m *ModulePinecomms) Mainloop(ctx context.Context, w *libwraith.Wraith) {
Hostname: hostname,
HostUser: username,
HostUserId: userId,
Errors: errs,
Errors: len(errs),
}
heartbeatBytes, err := proto.Marshal(&heartbeatData, m.OwnPrivKey)
if err != nil {