mirror of
https://github.com/eblot/pybootd.git
synced 2024-10-27 00:51:54 +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,
|
int(self.config.get(self.BOOTP_SECTION,
|
||||||
'lease_time',
|
'lease_time',
|
||||||
str(24*3600))))
|
str(24*3600))))
|
||||||
pkt += spack('!BB', DHCP_END, 0)
|
|
||||||
|
|
||||||
# do not attempt to produce a PXE-augmented response for
|
# do not attempt to produce a PXE-augmented response for
|
||||||
# regular DHCP requests
|
# regular DHCP requests
|
||||||
@ -620,12 +619,15 @@ class BootpServer:
|
|||||||
else:
|
else:
|
||||||
extra_buf = self.build_dhcp_options(hostname)
|
extra_buf = self.build_dhcp_options(hostname)
|
||||||
|
|
||||||
|
pkt += extra_buf
|
||||||
|
pkt += spack('!BB', DHCP_END, 0)
|
||||||
|
|
||||||
# update the UUID cache
|
# update the UUID cache
|
||||||
if pxe:
|
if pxe:
|
||||||
self.uuidpool[mac_addr] = uuid
|
self.uuidpool[mac_addr] = uuid
|
||||||
|
|
||||||
# send the response
|
# send the response
|
||||||
sock.sendto(pkt + extra_buf, addr)
|
sock.sendto(pkt, addr)
|
||||||
|
|
||||||
# update the current state
|
# update the current state
|
||||||
if currentstate != newstate:
|
if currentstate != newstate:
|
||||||
|
Loading…
Reference in New Issue
Block a user