diff --git a/quinn-proto/src/config.rs b/quinn-proto/src/config.rs index 25cb74cf7..52146897e 100644 --- a/quinn-proto/src/config.rs +++ b/quinn-proto/src/config.rs @@ -467,6 +467,12 @@ impl ServerConfig { } } + /// Set a custom [`TransportConfig`] + pub fn transport_config(&mut self, transport: Arc) -> &mut Self { + self.transport = transport; + self + } + /// Private key used to authenticate data included in handshake tokens. pub fn token_key(&mut self, value: Arc) -> &mut Self { self.token_key = value;