Disable hostname verification when option is enabled

Closes #153
This commit is contained in:
Sean McArthur
2017-06-28 11:03:28 -07:00
parent 478309e03f
commit 1785e0dc5d
3 changed files with 13 additions and 58 deletions

View File

@@ -30,6 +30,10 @@ impl Connector {
proxies: proxies,
}
}
pub fn danger_disable_hostname_verification(&mut self) {
self.https.danger_disable_hostname_verification(true);
}
}
impl Service for Connector {