Fixing DHCP_SERVER_PORT references
This commit is contained in:
parent
5ead4de6ab
commit
b26e8e1ead
@ -362,7 +362,7 @@ class DHCPServer(object):
|
|||||||
log(f'Offer packet options:', 'info')
|
log(f'Offer packet options:', 'info')
|
||||||
for option_number, option_value in packet_options.items():
|
for option_number, option_value in packet_options.items():
|
||||||
log(f'{option_number} [{option_descriptions[option_number]}]: {option_value}', 'info')
|
log(f'{option_number} [{option_descriptions[option_number]}]: {option_value}', 'info')
|
||||||
socket.sendto(offer_packet, (source_address, self.PORT))
|
socket.sendto(offer_packet, (source_address, self.DHCP_SERVER_PORT))
|
||||||
|
|
||||||
elif packet_options[53] == 3:
|
elif packet_options[53] == 3:
|
||||||
log('Received DHCP request packet', 'info')
|
log('Received DHCP request packet', 'info')
|
||||||
@ -372,7 +372,7 @@ class DHCPServer(object):
|
|||||||
log(f'Ack packet options:', 'info')
|
log(f'Ack packet options:', 'info')
|
||||||
for option_number, option_value in packet_options.items():
|
for option_number, option_value in packet_options.items():
|
||||||
log(f'{option_number} [{option_descriptions[option_number]}]: {option_value}', 'info')
|
log(f'{option_number} [{option_descriptions[option_number]}]: {option_value}', 'info')
|
||||||
socket.sendto(ack_packet, (source_address, self.PORT))
|
socket.sendto(ack_packet, (source_address, self.DHCP_SERVER_PORT))
|
||||||
|
|
||||||
elif packet_options[53] == 7:
|
elif packet_options[53] == 7:
|
||||||
log('Received DHCP release packet', 'info')
|
log('Received DHCP release packet', 'info')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user