From e02aa2eb1f33d18ebe4220f0382d043d89412539 Mon Sep 17 00:00:00 2001 From: Thomas Eizinger Date: Tue, 30 Jan 2024 09:27:38 -0800 Subject: [PATCH] chore(relay): update docs in regards to spec-compliance (#3437) --- rust/relay/src/server.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rust/relay/src/server.rs b/rust/relay/src/server.rs index b7203ccd9..55daebcd5 100644 --- a/rust/relay/src/server.rs +++ b/rust/relay/src/server.rs @@ -1070,6 +1070,9 @@ fn error_response( /// In a nutshell, the requirements constrain the use such that there is only one way of doing things. /// For example, it is disallowed to use [RequestedAddressFamily] for IPv6 and requested and an IPv4 address via [AdditionalAddressFamily]. /// If this is desired, clients should simply use [AdditionalAddressFamily] for IPv6. +/// +/// Note: To be fully compliant with TURN, we would need to set `ADDRESS-ERROR-CODE` in the response for partially filled requests. +/// We chose to omit this for now because our clients don't check for it. fn derive_relay_addresses( public_address: IpStack, requested_addr_family: Option<&RequestedAddressFamily>,