Add: MI-signed TURN responses, RFC MI validation, and deployment guide.
This commit is contained in:
+8
-2
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user