FakeDns icon indicating copy to clipboard operation
FakeDns copied to clipboard

return record should encode with latin

Open thanatoskira opened this issue 4 years ago • 2 comments

shoud encode return record with 'latin', eg:'220'.encode() will get '\xc3\x9c'

class A(DNSResponse):
    def __init__(self, query, record):
        super(A, self).__init__(query)
        self.type = b"\x00\x01"
        self.length = b"\x00\x04"
        self.data = self.get_ip(record).encode('latin')  <----

thanatoskira avatar Apr 22 '20 10:04 thanatoskira

whups, thanks for catching that. I'll fix that shortly...

Crypt0s avatar Apr 22 '20 14:04 Crypt0s

The real fix is this PR #34.

FredL69 avatar May 07 '20 09:05 FredL69