Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/fastrtc/webrtc_connection_mixin.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,9 @@ async def handle_offer(self, body, set_outputs):
candidate_str = body["candidate"].get("candidate", "")

# Example format: "candidate:2393089663 1 udp 2122260223 192.168.86.60 63692 typ host generation 0 ufrag LkZb network-id 1 network-cost 10"
# Also support shorter format: "candidate:0 1 UDP 2122187007 192.168.1.52 38846 typ host"
parts = candidate_str.split()
if len(parts) >= 10 and parts[0].startswith("candidate:"):
if len(parts) >= 8 and parts[0].startswith("candidate:"):
foundation = parts[0].split(":", 1)[1]
component = int(parts[1])
protocol = parts[2]
Expand Down