mirror of
https://github.com/eblot/pybootd.git
synced 2024-08-17 18:00:33 +03:00
Fix #6
This commit is contained in:
parent
3c9603ab5d
commit
79d223d3fe
@ -609,7 +609,6 @@ class BootpServer:
|
||||
int(self.config.get(self.BOOTP_SECTION,
|
||||
'lease_time',
|
||||
str(24*3600))))
|
||||
pkt += spack('!BB', DHCP_END, 0)
|
||||
|
||||
# do not attempt to produce a PXE-augmented response for
|
||||
# regular DHCP requests
|
||||
@ -620,12 +619,15 @@ class BootpServer:
|
||||
else:
|
||||
extra_buf = self.build_dhcp_options(hostname)
|
||||
|
||||
pkt += extra_buf
|
||||
pkt += spack('!BB', DHCP_END, 0)
|
||||
|
||||
# update the UUID cache
|
||||
if pxe:
|
||||
self.uuidpool[mac_addr] = uuid
|
||||
|
||||
# send the response
|
||||
sock.sendto(pkt + extra_buf, addr)
|
||||
sock.sendto(pkt, addr)
|
||||
|
||||
# update the current state
|
||||
if currentstate != newstate:
|
||||
|
Loading…
Reference in New Issue
Block a user