mirror of
https://github.com/eblot/pybootd.git
synced 2024-09-11 22:17:44 +03:00
Fix legacy DHCP protocol handling.
Some bootp ROMs don't send an explicit dhcp DISCOVER: in case we allow "simple DHCP", handle those packets as if they were dhcp DISCOVER packets.
This commit is contained in:
parent
810b027efe
commit
e4ea373068
@ -383,6 +383,9 @@ class BootpServer:
|
||||
to_bool(self.config.get(self.bootp_section, sdhcp))
|
||||
if not simple_dhcp:
|
||||
return
|
||||
if not dhcp_msg_type:
|
||||
# Legacy DHCP: assuming discover by default
|
||||
dhcp_msg_type = DHCP_DISCOVER
|
||||
|
||||
# if access control is enable
|
||||
if self.access:
|
||||
|
Loading…
Reference in New Issue
Block a user