add ice-servers config

This commit is contained in:
lc
2025-11-16 18:43:31 +08:00
parent 0da5d379fc
commit 7cb29b1117
3 changed files with 61 additions and 27 deletions

View File

@@ -1,3 +1,5 @@
#[cfg(feature = "webrtc")]
use crate::webrtc::{self, is_webrtc_endpoint};
use crate::{
config::{Config, NetworkType},
tcp::FramedStream,
@@ -5,8 +7,6 @@ use crate::{
websocket::{self, check_ws, is_ws_endpoint},
ResultType, Stream,
};
#[cfg(feature = "webrtc")]
use crate::webrtc::{self, is_webrtc_endpoint};
use anyhow::Context;
use std::{net::SocketAddr, sync::Arc};
use tokio::net::{ToSocketAddrs, UdpSocket};