Skip to content

Commit

Permalink
fix invalid hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
HenriWahl committed Feb 20, 2023
1 parent 67ddfad commit 8471c00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dhcpy6d/options/option_39.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def build(self, transaction=None, **kwargs):
response_string_part = self.convert_to_string(self.number, f'{nos_flags:02x}{fqdn_binary}')
else:
# if no hostname given put something in and force client override
fqdn_binary = convert_dns_to_binary('invalid-hostname.{cfg.DOMAIN}')
fqdn_binary = convert_dns_to_binary(f'invalid-hostname.{cfg.DOMAIN}')
response_string_part = self.convert_to_string(self.number, f'{3:02x}{fqdn_binary}')
# options in answer to be logged
options_answer_part = self.number
Expand Down

0 comments on commit 8471c00

Please sign in to comment.