refactor: 删除未使用的公共 STUN/TURN 逻辑

This commit is contained in:
mofeng-git
2026-04-20 10:15:53 +08:00
parent 7c703b8b4b
commit fcb39c73fc
5 changed files with 24 additions and 89 deletions

View File

@@ -2048,14 +2048,12 @@ pub async fn webrtc_ice_servers(State(state): State<Arc<AppState>>) -> Json<IceS
}
}
} else {
// No custom servers configured - use Google STUN as default
if let Some(stun) = public_ice::stun_server() {
ice_servers.push(IceServerInfo {
urls: vec![stun],
username: None,
credential: None,
});
}
// No custom servers — baked-in public STUN
ice_servers.push(IceServerInfo {
urls: vec![public_ice::stun_server().to_string()],
username: None,
credential: None,
});
// Note: TURN servers are not provided - users must configure their own
}