From 07738004ccfa23cc134686f099488e64cdfc1f34 Mon Sep 17 00:00:00 2001 From: Miroslav Stampar Date: Fri, 27 Jul 2012 10:02:47 +0200 Subject: [PATCH] Fix for an Issue #123 --- lib/request/dns.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/request/dns.py b/lib/request/dns.py index 4e1236bb5..16d77fbd7 100644 --- a/lib/request/dns.py +++ b/lib/request/dns.py @@ -63,6 +63,7 @@ class DNSServer: self._requests = [] self._lock = threading.Lock() self._socket = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) + self._socket.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) self._socket.bind(("", 53)) self._running = False