From b382c1f7fa9057e311b58e8b611b6fdbb1490cf0 Mon Sep 17 00:00:00 2001 From: Stefano Chiodino Date: Mon, 6 Nov 2017 22:35:34 +0000 Subject: [PATCH] Disable ssl for now --- src/nicehash_api_raw.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/nicehash_api_raw.rs b/src/nicehash_api_raw.rs index 9438fb4..c26ce9b 100644 --- a/src/nicehash_api_raw.rs +++ b/src/nicehash_api_raw.rs @@ -4,7 +4,11 @@ pub fn get_nicehash_response() -> Result { use std::io::Read; const API_URL: &str = "https://api.nicehash.com/api?method=simplemultialgo.info"; - let mut resp = reqwest::get(API_URL)?; + let mut resp = reqwest::Client::builder() + .danger_disable_hostname_verification() + .build()? + .get(API_URL) + .send()?; assert!(resp.status().is_success()); let mut content = String::new();