change rust lib port
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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(())
|
||||
}
|
||||
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user