From 61f81df40402dcf1146290afb53a78d50f66638e Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Sat, 25 Apr 2020 15:42:36 +0300 Subject: reuseaddr --- kvmd/apps/vnc/server.py | 1 + 1 file changed, 1 insertion(+) (limited to 'kvmd/apps') diff --git a/kvmd/apps/vnc/server.py b/kvmd/apps/vnc/server.py index 64fb1178..66b7e503 100644 --- a/kvmd/apps/vnc/server.py +++ b/kvmd/apps/vnc/server.py @@ -337,6 +337,7 @@ class VncServer: # pylint: disable=too-many-instance-attributes with contextlib.closing(socket.socket(socket.AF_INET6, socket.SOCK_STREAM)) as sock: sock.setsockopt(socket.IPPROTO_IPV6, socket.IPV6_V6ONLY, False) + sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, True) sock.bind((self.__host, self.__port)) server = loop.run_until_complete(asyncio.start_server( -- cgit v1.2.3