diff options
author | Devaev Maxim <[email protected]> | 2020-04-25 15:42:36 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2020-04-25 15:42:36 +0300 |
commit | 61f81df40402dcf1146290afb53a78d50f66638e (patch) | |
tree | db86b43fc0c6a36b18f0bb1810a36c0e3cf10992 /kvmd/apps/vnc/server.py | |
parent | 775f8741a067b46c0577ab1108981c35a488f693 (diff) |
reuseaddr
Diffstat (limited to 'kvmd/apps/vnc/server.py')
-rw-r--r-- | kvmd/apps/vnc/server.py | 1 |
1 files changed, 1 insertions, 0 deletions
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( |