pub struct TlsConfig<EC: Debug, EA: Debug = EC> {
pub https_bind_addr: SocketAddr,
pub cert: CertConfig<EC, EA>,
}
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Available on crate feature
iroh-relay
only.Expand description
TLS configuration for Relay server.
Normally the Relay server accepts connections on both HTTPS and HTTP.
Fields§
§https_bind_addr: SocketAddr
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
The socket address on which to serve the HTTPS server.
Since the captive portal probe has to run over plain text HTTP and TLS is used for
the main relay server this has to be on a different port. When TLS is not enabled
this is served on the RelayConfig::http_bind_addr
socket address.
Normally you’d choose port 80
.
cert: CertConfig<EC, EA>
👎Deprecated: This crate has been renamed from ‘iroh-net’ to ‘iroh’, please use the new crate
Mode for getting a cert.
Trait Implementations§
Auto Trait Implementations§
impl<EC, EA> Freeze for TlsConfig<EC, EA>
impl<EC, EA = EC> !RefUnwindSafe for TlsConfig<EC, EA>
impl<EC, EA> Send for TlsConfig<EC, EA>
impl<EC, EA> Sync for TlsConfig<EC, EA>
impl<EC, EA> Unpin for TlsConfig<EC, EA>
impl<EC, EA = EC> !UnwindSafe for TlsConfig<EC, EA>
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more