From 73c30da46eeb4a49e69217928f41b401931088b0 Mon Sep 17 00:00:00 2001 From: Gus Cairo Date: Wed, 9 Apr 2025 14:42:57 +0100 Subject: [PATCH] Add missing configurator method to the NIOTSListenerBootstrap --- Sources/NIOTransportServices/NIOTSListenerBootstrap.swift | 8 ++++++++ 1 file changed, 8 insertions(+) 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. ///