Bound the satellite label to 80 chars before it reaches the database

This commit is contained in:
LeoVasanko committed 2026-10-01 06:52:19 +00:00
1 parent f2b82f04a9
commit 1f3410aa88
1 file changed
+4 -1
+4 -1
View File
@@ -256,7 +256,10 @@ async def _handshake(ws: WebSocket) -> _Connection | None:
await ws.close(code=1008)
return None
db.create_satellite_link(
link_id, rp_ids, server_part + client_part, label=hello.get("label") or ""
link_id,
rp_ids,
server_part + client_part,
label=(hello.get("label") or "")[:80],
)
return _Connection(
ws=ws,