diff --git a/examples/simple_ssl.rs b/examples/simple_ssl.rs index 5c9491f..61e0250 100644 --- a/examples/simple_ssl.rs +++ b/examples/simple_ssl.rs @@ -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() }; diff --git a/src/client/conn.rs b/src/client/conn.rs index e8de5d0..0cb4d23 100644 --- a/src/client/conn.rs +++ b/src/client/conn.rs @@ -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)?;