From 253bf34371173e3cdd4871c18148ed75c3fa0832 Mon Sep 17 00:00:00 2001 From: Nicolas Vollmar Date: Sun, 9 Jun 2024 00:08:10 +0200 Subject: T6460: fixes duid formatting --- src/op_mode/dhcp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/op_mode/dhcp.py b/src/op_mode/dhcp.py index 54d492cda..3229da4ad 100755 --- a/src/op_mode/dhcp.py +++ b/src/op_mode/dhcp.py @@ -47,7 +47,8 @@ def _utc_to_local(utc_dt): return datetime.fromtimestamp((datetime.fromtimestamp(utc_dt) - datetime(1970, 1, 1)).total_seconds()) -def _format_hex_string(in_str): +def _format_hex_string(in_bytes): + in_str = bytes(in_bytes).hex() out_str = "" # if input is divisible by 2, add : every 2 chars if len(in_str) > 0 and len(in_str) % 2 == 0: -- cgit v1.2.3