Skip to content

Commit 7720686

Browse files
committed
minor changes
1 parent 7a82634 commit 7720686

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

DnsServerCore/Dhcp/DhcpServer.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -261,14 +261,10 @@ private async Task ProcessDhcpRequestAsync(DhcpMessage request, IPEndPoint remot
261261
else
262262
udpSocket = udpListener; //no appropriate socket found so use default socket
263263

264-
if (OperatingSystem.IsMacOS())
265-
{
264+
if (OperatingSystem.IsMacOS())
266265
await udpSocket.SendToAsync(new ArraySegment<byte>(sendBuffer, 0, (int)sendBufferStream.Position), SocketFlags.None, new IPEndPoint(IPAddress.Broadcast, 68));
267-
}
268-
else
269-
{
270-
await udpSocket.SendToAsync(new ArraySegment<byte>(sendBuffer, 0, (int)sendBufferStream.Position), SocketFlags.DontRoute, new IPEndPoint(IPAddress.Broadcast, 68)); //no routing for broadcast
271-
}
266+
else
267+
await udpSocket.SendToAsync(new ArraySegment<byte>(sendBuffer, 0, (int)sendBufferStream.Position), SocketFlags.DontRoute, new IPEndPoint(IPAddress.Broadcast, 68)); //no routing for broadcast
272268
}
273269
}
274270
}

0 commit comments

Comments
 (0)