Read greeting if TLS but no STARTTLS
This commit is contained in:
parent
f616ea992e
commit
26d89aebe1
1 changed files with 7 additions and 1 deletions
|
|
@ -139,6 +139,12 @@ where
|
||||||
};
|
};
|
||||||
|
|
||||||
let tls = handshake(self.domain.as_ref(), tcp)?;
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue