Read greeting if TLS but no STARTTLS

This commit is contained in:
Jon Gjengset 2022-08-10 18:43:38 -07:00
parent f616ea992e
commit 26d89aebe1

View file

@ -139,6 +139,12 @@ where
};
let tls = handshake(self.domain.as_ref(), tcp)?;
Ok(Client::new(tls))
let mut client = Client::new(tls);
if !self.starttls {
client.read_greeting()?;
}
Ok(client)
}
}