Add: MI-signed TURN responses, RFC MI validation, and deployment guide.

This commit is contained in:
2025-12-28 15:57:06 +01:00
parent 29c0d8c0cf
commit a42af38cfe
41 changed files with 4389 additions and 819 deletions
+8 -2
View File
@@ -6,7 +6,7 @@ mod support;
mod helpers;
use helpers::*;
use niom_turn::alloc::AllocationManager;
use niom_turn::alloc::{AllocationManager, ClientSink};
use std::net::SocketAddr;
use std::sync::Arc;
use std::time::Duration;
@@ -16,7 +16,13 @@ async fn allocate_sample(manager: &AllocationManager) -> SocketAddr {
let server = Arc::new(UdpSocket::bind("127.0.0.1:0").await.expect("udp bind"));
let client = sample_client();
manager
.allocate_for(client, server)
.allocate_for(
client,
ClientSink::Udp {
sock: server,
addr: client,
},
)
.await
.expect("allocate relay");
client