change rust lib port

This commit is contained in:
Face
2025-09-07 20:11:28 +03:00
parent b4e151e79f
commit 07deaaa130
3 changed files with 1 additions and 8 deletions

View File

@@ -60,14 +60,12 @@ impl GurtCAClient {
}
async fn test_connection(&self) -> Result<()> {
// Try a simple request to test if connection works
let _response = self.gurt_client
.get(&format!("{}/ca/root", self.ca_url))
.await?;
Ok(())
}
pub async fn verify_domain_exists(&self, domain: &str) -> Result<bool> {
let response = self.gurt_client
.get(&format!("{}/verify-ownership/{}", self.ca_url, domain))

View File

@@ -102,10 +102,5 @@ async fn get_ca_certificate(
std::fs::write(output_path, &ca_cert)?;
println!("✅ CA certificate saved to: {}", output_path);
println!("💡 To trust this CA system-wide:");
println!(" Windows: Import {} into 'Trusted Root Certification Authorities'", output_path);
println!(" macOS: sudo security add-trusted-cert -d -r trustRoot -k /System/Library/Keychains/SystemRootCertificates.keychain {}", output_path);
println!(" Linux: Copy {} to /usr/local/share/ca-certificates/ and run sudo update-ca-certificates", output_path);
Ok(())
}

View File

@@ -51,7 +51,7 @@ impl Default for GurtClientConfig {
max_connections_per_host: 4,
custom_ca_certificates: Vec::new(),
dns_server_ip: "135.125.163.131".to_string(),
dns_server_port: 8877,
dns_server_port: 4878,
}
}
}