You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
allowLocalEndpointReuse is being set to the value of NIOTSEnablePeerToPeerOption, not itself.
Though it might not really matter, because from everything I can tell allowLocalEndpointReuse seems to be completely broken on NWListener (ref https://developer.apple.com/forums/thread/129452).
The text was updated successfully, but these errors were encountered:
case is NIOTSChannelOptions.Types.NIOTSAllowLocalEndpointReuse:
self.allowLocalEndpointReuse = value as! NIOTSChannelOptions.Types.NIOTSEnablePeerToPeerOption.Value
It won't make any difference as long as both NIOTSEnablePeerToPeerOption.Value and NIOTSAllowLocalEndpointReuse.Value are Bools, but it's probably better to fix it anyway for consistency.
Looks like a copy-paste mistake here:
swift-nio-transport-services/Sources/NIOTransportServices/NIOTSConnectionChannel.swift
Lines 320 to 323 in e7f5278
allowLocalEndpointReuse
is being set to the value ofNIOTSEnablePeerToPeerOption
, not itself.Though it might not really matter, because from everything I can tell
allowLocalEndpointReuse
seems to be completely broken on NWListener (ref https://developer.apple.com/forums/thread/129452).The text was updated successfully, but these errors were encountered: