Bound the satellite label to 80 chars before it reaches the database
This commit is contained in:
1 parent
f2b82f04a9
commit
1f3410aa88
1 file changed
+4
-1
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user