Skip to content

Commit

Permalink
Fix builds on Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Schmiedmayer committed Feb 15, 2021
1 parent 32e4a5c commit 08af4dc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Sources/NIOLIFX/LIFXDeviceManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,9 @@ public final class LIFXDeviceManager {

// Begin by setting up the basics of the bootstrap.
let bootstrap = DatagramBootstrap(group: eventLoopGroup)
.channelOption(ChannelOptions.socket(SOL_SOCKET, SO_REUSEADDR), value: 1)
.channelOption(ChannelOptions.socket(SOL_SOCKET, SO_REUSEPORT), value: 1)
.channelOption(ChannelOptions.socket(SOL_SOCKET, SO_BROADCAST), value: 1)
.channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEADDR), value: 1)
.channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_REUSEPORT), value: 1)
.channelOption(ChannelOptions.socket(SocketOptionLevel(SOL_SOCKET), SO_BROADCAST), value: 1)
.channelInitializer { channel in
channel.pipeline.addHandlers([MessageEncoder(), MessageDecoder(), messageHandler])
}
Expand Down

0 comments on commit 08af4dc

Please sign in to comment.