fixed set as default HOSTNAME key on leases object #23

This commit is contained in:
mh4x0f 2020-04-29 12:06:08 -03:00
parent 8fd0803ee1
commit 2dd0fef19b
2 changed files with 2 additions and 1 deletions

View File

@ -17,6 +17,7 @@ All notable changes to this project will be documented in this file.
### Removed ### Removed
### Fixed ### Fixed
- fixed set as default HOSTNAME key on leases object [mh4x0f]
- fixed settings default status_ap values that change on #23 [mh4x0f] - fixed settings default status_ap values that change on #23 [mh4x0f]
- fixed lock command start when AP is running [mh4x0f] - fixed lock command start when AP is running [mh4x0f]
- fixed NoProxy object has no attribute parser_set_noproxy #24 [mh4x0f] - fixed NoProxy object has no attribute parser_set_noproxy #24 [mh4x0f]

View File

@ -80,7 +80,7 @@ class DHCPProtocol(QObject):
mac = str(packet.get_hardware_address()) mac = str(packet.get_hardware_address())
if mac not in self.leases.keys(): if mac not in self.leases.keys():
self.ip_client = next(self.IPADDR) self.ip_client = next(self.IPADDR)
self.leases[mac] = {"MAC": mac, "IP": str(self.ip_client)} self.leases[mac] = {"MAC": mac, "IP": str(self.ip_client),"HOSTNAME" : "" }
else: else:
self.ip_client = self.leases[mac]["IP"] self.ip_client = self.leases[mac]["IP"]