Fix for an Issue #123

This commit is contained in:
Miroslav Stampar 2012-07-27 10:02:47 +02:00
parent a5062c1e4f
commit 07738004cc

View File

@ -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