File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -181,9 +181,9 @@ impl SslOpts {
181
181
182
182
/// If set, will override the hostname used to verify the server's certificate.
183
183
///
184
- /// This is useful when connecting to a server via a tunnel, where the server hostname
185
- /// name is different from the hostname used to connect to the tunnel.
186
- pub fn with_tls_hostname_override < T : Into < Cow < ' static , str > > > (
184
+ /// This is useful when connecting to a server via a tunnel, where the server hostname is
185
+ /// different from the hostname used to connect to the tunnel.
186
+ pub fn with_danger_tls_hostname_override < T : Into < Cow < ' static , str > > > (
187
187
mut self ,
188
188
domain : Option < T > ,
189
189
) -> Self {
@@ -209,7 +209,7 @@ impl SslOpts {
209
209
}
210
210
211
211
pub fn tls_hostname_override ( & self ) -> Option < & str > {
212
- self . tls_hostname_override . as_ref ( ) . map ( AsRef :: as_ref )
212
+ self . tls_hostname_override . as_deref ( )
213
213
}
214
214
}
215
215
You can’t perform that action at this time.
0 commit comments