diff options
author | Dániel Zoltán Tolnai <danielz.tolnai@gmail.com> | 2018-05-01 16:41:13 +0200 |
---|---|---|
committer | Dániel Zoltán Tolnai <danielz.tolnai@gmail.com> | 2018-06-07 21:21:16 +0200 |
commit | df392010132bf6069a83a70007c442696a7460f5 (patch) | |
tree | 493056aa9c27ddd293128849eeefb665b96ba370 | |
parent | 4195e66e4f60affd3403c2617cdf873583ca98a4 (diff) |
kodi-send: Use IP address as client token
Sending the packets with uid=0 makes the server register the client using its IP as client token. This prevents registering consecutive runs as different clients and filling the server side buffer.
-rwxr-xr-x | tools/EventClients/Clients/KodiSend/kodi-send.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/EventClients/Clients/KodiSend/kodi-send.py b/tools/EventClients/Clients/KodiSend/kodi-send.py index cb7aced2da..84a2b0285a 100755 --- a/tools/EventClients/Clients/KodiSend/kodi-send.py +++ b/tools/EventClients/Clients/KodiSend/kodi-send.py @@ -89,7 +89,7 @@ def main(): packet = PacketACTION(actionmessage=action['content'], actiontype=ACTION_BUTTON) elif action['type'] == TYPE_BUTTON: packet = PacketBUTTON(code=0, repeat=0, down=1, queue=1, map_name=keymap, button_name=action['content'], amount=0) - packet.send(sock, addr) + packet.send(sock, addr, uid=0) if __name__=="__main__": main() |