fix: remove IW4x CDNs

This commit is contained in:
alterware
2025-06-11 14:17:33 +02:00
parent 64084c6fe0
commit 7760cedd82
5 changed files with 14 additions and 58 deletions

View File

@@ -195,12 +195,8 @@ pub struct Hosts {
impl Hosts {
/// create new rated hosts instance
pub async fn new(use_iw4x_cdns: bool) -> Self {
let cdn_hosts = if use_iw4x_cdns {
crate::global::IW4X_CDN_HOSTS.to_vec()
} else {
crate::global::CDN_HOSTS.to_vec()
};
pub async fn new() -> Self {
let cdn_hosts = crate::global::CDN_HOSTS.to_vec();
let mut hosts = Hosts {
servers: cdn_hosts,
@@ -276,7 +272,7 @@ impl Hosts {
}
/// CDN rating function for --rate flag
pub async fn rate_cdns_and_display(use_iw4x_cdns: bool) {
pub async fn rate_cdns_and_display() {
use colored::Colorize;
let (asn, region_str) = crate::http::get_location_info().await;
@@ -293,11 +289,7 @@ pub async fn rate_cdns_and_display(use_iw4x_cdns: bool) {
println!("Rating CDNs...");
let cdn_hosts = if use_iw4x_cdns {
crate::global::IW4X_CDN_HOSTS.to_vec()
} else {
crate::global::CDN_HOSTS.to_vec()
};
let cdn_hosts = crate::global::CDN_HOSTS.to_vec();
let mut hosts = Hosts {
servers: cdn_hosts,