Pass source ID through to JSON output.

This commit is contained in:
Ian Gulliver
2016-02-22 22:00:49 -08:00
parent bccdc212f2
commit ebdb3f9dc0
3 changed files with 5 additions and 1 deletions

View File

@@ -79,7 +79,9 @@ static void receive_read(struct peer *peer) {
return;
}
struct packet packet = { 0 };
struct packet packet = {
.source_id = receive->id,
};
while (receive->parser_wrapper(receive, &packet)) {
send_write(&packet);
}