aboutsummaryrefslogtreecommitdiff
path: root/tools/EventClients
diff options
context:
space:
mode:
authorDániel Zoltán Tolnai <danielz.tolnai@gmail.com>2018-05-01 16:41:13 +0200
committerDániel Zoltán Tolnai <danielz.tolnai@gmail.com>2018-06-07 21:21:16 +0200
commitdf392010132bf6069a83a70007c442696a7460f5 (patch)
tree493056aa9c27ddd293128849eeefb665b96ba370 /tools/EventClients
parent4195e66e4f60affd3403c2617cdf873583ca98a4 (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.
Diffstat (limited to 'tools/EventClients')
-rwxr-xr-xtools/EventClients/Clients/KodiSend/kodi-send.py2
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()