chore: send error count in heartbeat, not list
This commit is contained in:
parent
30a5143294
commit
f0775e3f92
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue
Block a user