doublez13 / pystub

DNS resolver with support for DNS over TLS and ad blocking
BSD 2-Clause "Simplified" License
6 stars 0 forks source link

OverflowError: can't convert negative int to unsigned #21

Closed doublez13 closed 4 years ago

doublez13 commented 4 years ago

Exception happened during processing of request from ('127.0.0.1', 19963) Traceback (most recent call last): File "/usr/local/lib/python3.7/socketserver.py", line 650, in process_request_thread self.finish_request(request, client_address) File "/usr/local/lib/python3.7/socketserver.py", line 360, in finish_request self.RequestHandlerClass(request, client_address, self) File "/usr/local/lib/python3.7/socketserver.py", line 720, in init self.handle() File "./pystub", line 757, in handle def handle(self): File "./pystub", line 790, in process_query response.set_flags(QR=1, RD=RD, RA=1, RCode=2) File "./pystub", line 170, in to_bytes header_bytes = self.header_to_bytes() File "./pystub", line 178, in header_to_bytes trans_id = self.TXID.to_bytes(2, 'big') OverflowError: can't convert negative int to unsigned