From e25f72f9df1cdb8c680958f4f4e18c2d13135337 Mon Sep 17 00:00:00 2001 From: Shreyas Zare Date: Sat, 26 Sep 2020 18:09:50 +0530 Subject: [PATCH] Lease: using enum in place of constant. --- DnsServerCore/Dhcp/Lease.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/DnsServerCore/Dhcp/Lease.cs b/DnsServerCore/Dhcp/Lease.cs index f248ba6f..a54de10c 100644 --- a/DnsServerCore/Dhcp/Lease.cs +++ b/DnsServerCore/Dhcp/Lease.cs @@ -1,6 +1,6 @@ /* Technitium DNS Server -Copyright (C) 2019 Shreyas Zare (shreyas@technitium.com) +Copyright (C) 2020 Shreyas Zare (shreyas@technitium.com) This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -65,7 +65,7 @@ namespace DnsServerCore.Dhcp } internal Lease(LeaseType type, string hostName, byte[] hardwareAddress, IPAddress address, string comments) - : this(type, new ClientIdentifierOption(1, hardwareAddress), hostName, hardwareAddress, address, comments, 0) + : this(type, new ClientIdentifierOption((byte)DhcpMessageHardwareAddressType.Ethernet, hardwareAddress), hostName, hardwareAddress, address, comments, 0) { } internal Lease(LeaseType type, string hostName, string hardwareAddress, IPAddress address, string comments)