summaryrefslogtreecommitdiffhomepage
path: root/netboot/netconf.go
diff options
context:
space:
mode:
Diffstat (limited to 'netboot/netconf.go')
-rw-r--r--netboot/netconf.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/netboot/netconf.go b/netboot/netconf.go
index aef4efa..833bf52 100644
--- a/netboot/netconf.go
+++ b/netboot/netconf.go
@@ -106,10 +106,6 @@ func GetNetConfFromPacketv4(d *dhcpv4.DHCPv4) (*NetConf, error) {
leaseTime = leaseTimeOption.(*dhcpv4.OptIPAddressLeaseTime).LeaseTime
}
- if int(leaseTime) < 0 {
- return nil, fmt.Errorf("lease time overflow, Original lease time: %d", leaseTime)
- }
-
netconf.Addresses = append(netconf.Addresses, AddrConf{
IPNet: net.IPNet{
IP: ipAddr,