diff --git a/Sources/NIOTransportServices/NIOTSListenerBootstrap.swift b/Sources/NIOTransportServices/NIOTSListenerBootstrap.swift index 22b1280..ef4cd32 100644 --- a/Sources/NIOTransportServices/NIOTSListenerBootstrap.swift +++ b/Sources/NIOTransportServices/NIOTSListenerBootstrap.swift @@ -240,6 +240,14 @@ public final class NIOTSListenerBootstrap { return self } + /// Customise the `NWParameters` to be used when creating the connection. + public func configureNWParameters( + _ configurator: @Sendable @escaping (NWParameters) -> Void + ) -> Self { + self.nwParametersConfigurator = configurator + return self + } + /// Specifies a type of Multipath service to use for this listener, instead of the default /// service type for the event loop. ///