mirror of
https://github.com/opnsense/core.git
synced 2026-02-18 18:18:13 -05:00
kea: Add scope ID to prefix watcher link local address to fix route add (#9778)
This commit is contained in:
parent
1d06cf40eb
commit
c145e5c30e
1 changed files with 2 additions and 1 deletions
|
|
@ -90,7 +90,8 @@ class Hostwatch:
|
|||
for row in ujson.loads(out).get("rows", []):
|
||||
# [ifname, mac, ip]
|
||||
if ipaddress.ip_address(row[2]).is_link_local:
|
||||
self._def_local_db[row[1]] = row[2]
|
||||
# link local requires scope ID here, otherwise route add will fail
|
||||
self._def_local_db[row[1]] = f"{row[2]}%{row[0]}"
|
||||
|
||||
def get(self, mac):
|
||||
if mac not in self._def_local_db:
|
||||
|
|
|
|||
Loading…
Reference in a new issue