From f9fcc3c3eb529abae8b62437e0bf95ed02733581 Mon Sep 17 00:00:00 2001 From: Devaev Maxim Date: Wed, 14 Apr 2021 11:29:14 +0300 Subject: https://bugs.archlinux.org/task/70438 --- kvmd/plugins/hid/bt/server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kvmd/plugins/hid/bt') diff --git a/kvmd/plugins/hid/bt/server.py b/kvmd/plugins/hid/bt/server.py index af91a6f8..001c7c59 100644 --- a/kvmd/plugins/hid/bt/server.py +++ b/kvmd/plugins/hid/bt/server.py @@ -151,7 +151,8 @@ class BtServer: # pylint: disable=too-many-instance-attributes @contextlib.contextmanager def __listen(self, role: _RoleT, addr: str, port: int) -> Generator[socket.socket, None, None]: get_logger(0).info("Listening [%s]:%d for %s ...", addr, port, role) - with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as sock: + # with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as sock: + with socket.socket(31, socket.SOCK_SEQPACKET, 0) as sock: sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.settimeout(self.__socket_timeout) sock.bind((addr, port)) -- cgit v1.2.3