mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 00:07:26 +00:00
dnsmasq: skip link-local as well
If we can't set the scope chances are this doesn't work properly anyway.
This commit is contained in:
parent
c6706805a2
commit
a0d9ce9c3c
@ -124,12 +124,13 @@ function dnsmasq_configure_do($verbose = false)
|
||||
|
||||
foreach ($interfaces as $interface) {
|
||||
foreach (interfaces_addresses($interface) as $tmpaddr) {
|
||||
/* no support for link-local address with scope specified */
|
||||
$tmpaddr = explode('%', $tmpaddr)[0];
|
||||
if ($interface == 'lo0' && is_ipaddrv4($tmpaddr) && $tmpaddr != '127.0.0.1') {
|
||||
continue;
|
||||
}
|
||||
$addresses[] = $tmpaddr;
|
||||
/* link-local does not seem to be supported */
|
||||
if (strstr($tmpaddr, '%') === false && !is_linklocal($tmpaddr)) {
|
||||
$addresses[] = $tmpaddr;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user