Updates server logic
All checks were successful
Build and Push Multi-Platform Docker Image / build-and-push (push) Successful in 16s

This commit is contained in:
Hirviturkki
2025-04-21 21:13:54 +02:00
parent be55fbe782
commit 720fb915fe

View File

@@ -47,6 +47,7 @@ async def handler(ws: websockets.WebSocketServerProtocol):
logging.warning("Target %s not found", target) logging.warning("Target %s not found", target)
elif mtype == "labels": elif mtype == "labels":
logging.info(f"Got labels from {peer_id}: {msg['labels']}")
labels = msg.get("labels") labels = msg.get("labels")
if peer_id and isinstance(labels, list): if peer_id and isinstance(labels, list):
CLIENT_LABELS[peer_id] = labels CLIENT_LABELS[peer_id] = labels