paulc / dnslib

A Python library to encode/decode DNS wire-format packets
https://github.com/paulc/dnslib
BSD 2-Clause "Simplified" License
295 stars 84 forks source link

DNSLabel make matchSuffix and stripSuffix case-insensitive #37

Closed NiKiZe closed 1 year ago

NiKiZe commented 2 years ago

Reuse matchSuffix in stripSuffix DRY Use eq to compare label after creating same length

Fix #36 Relates to #22

paulc commented 1 year ago

Thanks very much for this - mow merged and new release uploaded to PyPi (0.9.20). Apologies for the delay getting to this.