mirror of
https://github.com/rustdesk/hbb_common.git
synced 2026-10-11 19:23:59 +00:00
Reverts the webrtc_all_ice proto field (64b54ab) in favor of an `ice_policy: "all"` key inside the webrtc:// envelope JSON, next to the RTCSessionDescription fields. Same information, better carrier: - it is a property of the offer itself, so it rides with the offer; - the rendezvous server never has to know: the envelope is an opaque, length-bounded string to hbbs, so no forwarding code and no vendored proto copies to keep in sync; - serde ignores unknown JSON keys when parsing RTCSessionDescription, so every skew combination degrades exactly like the proto field did: absence - not an error - is the old Relay-only reading. endpoint_declares_all_ice() is the receiving side: parse failure, foreign scheme or missing key all read as "not declared". Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01ExUfAkYbq8UC9pQCiLy8TQ