diff options
author | Devaev Maxim <[email protected]> | 2021-05-17 09:30:13 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2021-05-17 09:30:13 +0300 |
commit | 2c7e71adefc22be84e859ba92d77124ad5daa578 (patch) | |
tree | ef8927e851c21f8ba0ef3b0b91fd14f232fee26a /kvmd | |
parent | cf4c81caf725bbf262fc629754c4067e95cc1960 (diff) |
fixed bt hid
Diffstat (limited to 'kvmd')
-rw-r--r-- | kvmd/plugins/hid/bt/server.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kvmd/plugins/hid/bt/server.py b/kvmd/plugins/hid/bt/server.py index 001c7c59..af91a6f8 100644 --- a/kvmd/plugins/hid/bt/server.py +++ b/kvmd/plugins/hid/bt/server.py @@ -151,8 +151,7 @@ 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(31, socket.SOCK_SEQPACKET, 0) as sock: + with socket.socket(socket.AF_BLUETOOTH, socket.SOCK_SEQPACKET, socket.BTPROTO_L2CAP) as sock: sock.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1) sock.settimeout(self.__socket_timeout) sock.bind((addr, port)) |