mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 08:09:41 +00:00
Services: ISC DHCPv6: Leases - regression in 5b0b4139b6 (off by 1). https://github.com/opnsense/core/issues/7107
This commit is contained in:
parent
1fe104dce6
commit
2ef916de0c
@ -107,7 +107,7 @@ def parse_lease(lines):
|
||||
parts = line.split(maxsplit=1)
|
||||
if idx == 0:
|
||||
lease['lease_type'] = parts[0]
|
||||
lease.update(parse_iaid_duid(parts[1][parts[1].index('"'):parts[1].rfind('"')]))
|
||||
lease.update(parse_iaid_duid(parts[1][parts[1].index('"')+1:parts[1].rfind('"')]))
|
||||
elif parts[0] == 'cltt' and len(parts) >= 2:
|
||||
cltt = parse_date(parts[1].split(maxsplit=1)[1])
|
||||
lease['cltt'] = cltt
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user