diff --git a/Sources/NIOTransportServices/StateManagedListenerChannel.swift b/Sources/NIOTransportServices/StateManagedListenerChannel.swift index 59a8da4..037aa8f 100644 --- a/Sources/NIOTransportServices/StateManagedListenerChannel.swift +++ b/Sources/NIOTransportServices/StateManagedListenerChannel.swift @@ -240,7 +240,7 @@ extension StateManagedListenerChannel { case is NIOTSChannelOptions.Types.NIOTSEnablePeerToPeerOption: self.enablePeerToPeer = value as! NIOTSChannelOptions.Types.NIOTSEnablePeerToPeerOption.Value case is NIOTSChannelOptions.Types.NIOTSAllowLocalEndpointReuse: - self.allowLocalEndpointReuse = value as! NIOTSChannelOptions.Types.NIOTSEnablePeerToPeerOption.Value + self.allowLocalEndpointReuse = value as! NIOTSChannelOptions.Types.NIOTSAllowLocalEndpointReuse.Value case is NIOTSChannelOptions.Types.NIOTSMultipathOption: self.multipathServiceType = value as! NIOTSChannelOptions.Types.NIOTSMultipathOption.Value default: diff --git a/Sources/NIOTransportServices/StateManagedNWConnectionChannel.swift b/Sources/NIOTransportServices/StateManagedNWConnectionChannel.swift index 30026d5..0aa0d56 100644 --- a/Sources/NIOTransportServices/StateManagedNWConnectionChannel.swift +++ b/Sources/NIOTransportServices/StateManagedNWConnectionChannel.swift @@ -538,7 +538,7 @@ extension StateManagedNWConnectionChannel { case _ as ChannelOptions.Types.AllowRemoteHalfClosureOption: self.options.supportRemoteHalfClosure = value as! Bool case is NIOTSChannelOptions.Types.NIOTSAllowLocalEndpointReuse: - self.allowLocalEndpointReuse = value as! NIOTSChannelOptions.Types.NIOTSEnablePeerToPeerOption.Value + self.allowLocalEndpointReuse = value as! NIOTSChannelOptions.Types.NIOTSAllowLocalEndpointReuse.Value default: try self.setChannelSpecificOption0(option: option, value: value) }