Fixed bug with SSL domain verification.
This commit is contained in:
parent
b277db71e0
commit
536521e349
2 changed files with 1 additions and 2 deletions
|
@ -8,7 +8,6 @@ fn main() {
|
|||
nickname: Some("pickles".to_owned()),
|
||||
server: Some("irc.fyrechat.net".to_owned()),
|
||||
channels: Some(vec!["#irc-crate".to_owned()]),
|
||||
port: Some(6697),
|
||||
use_ssl: Some(true),
|
||||
..Default::default()
|
||||
};
|
||||
|
|
|
@ -104,7 +104,7 @@ impl Connection {
|
|||
if config.use_mock_connection() {
|
||||
Ok(ConnectionFuture::Mock(config))
|
||||
} else if config.use_ssl() {
|
||||
let domain = format!("{}:{}", config.server(), config.port());
|
||||
let domain = format!("{}", config.server());
|
||||
let mut builder = TlsConnector::builder()?;
|
||||
if let Some(cert_path) = config.cert_path() {
|
||||
let mut file = File::open(cert_path)?;
|
||||
|
|
Loading…
Reference in a new issue