Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
packet: don't always skip empty values in .command() (#4238)
This patch fixes an issue where empty lists assigned explicitly to override non-empty default values weren't present in commands generated by Packet.command and the packets were different. For example `DNS(qd=[]).command()` generated `DNS()` and it turned into packets with the default "example.com IN A" query. With this patch applied it generates `DNS(qd=[])`.
- Loading branch information