mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-24 03:58:19 +00:00
config: add ServerConfig::transport_config() builder method
This commit is contained in:
committed by
Benjamin Saunders
parent
c0b50b4a0d
commit
d522b6dd63
@@ -467,6 +467,12 @@ impl ServerConfig {
|
||||
}
|
||||
}
|
||||
|
||||
/// Set a custom [`TransportConfig`]
|
||||
pub fn transport_config(&mut self, transport: Arc<TransportConfig>) -> &mut Self {
|
||||
self.transport = transport;
|
||||
self
|
||||
}
|
||||
|
||||
/// Private key used to authenticate data included in handshake tokens.
|
||||
pub fn token_key(&mut self, value: Arc<dyn HandshakeTokenKey>) -> &mut Self {
|
||||
self.token_key = value;
|
||||
|
||||
Reference in New Issue
Block a user