AdguardTeam / AdguardTeam/AdGuardHome

cache not working if the request comes from public ipv6 versus local

Offen
#7,259 2 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
36.9k
Forks
2.5k
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

### Prerequisites

- [X] I have checked the [Wiki](https://github.com/AdguardTeam/AdGuardHome/wiki) and [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) and found no answer

- [X] I have searched other issues and found no duplicates

- [X] I want to report a bug and not [ask a question or ask for help](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a)

- [X] I have set up AdGuard Home correctly and [configured clients to use it](https://github.com/AdguardTeam/AdGuardHome/wiki/Clients). (Use the [Discussions](https://github.com/AdguardTeam/AdGuardHome/discussions/categories/q-a) for help with installing and configuring clients.)

### Platform (OS and CPU architecture)

Linux, ARM64

### Installation

GitHub releases or script from README

### Setup

Other (please mention in the description)

### AdGuard Home version

v0.107.52 in homeassistant

### Action

Replace the following command with the one you're calling or a
description of the failing action:

```sh
nslookup google.com
(goes through jrouter jto be forwarded to home assistant locally)
if the request arrives from the router's ipv4, any existing cache is used, if ipv6 and the origin address is the router public ipv6 instead of link local, the cache is ignored **always**.

Example

nslookup
server adguardipv4
google.com

result: cache used

server adguardipv6
google.com

result: cache ignored

adguard linklocal
google.com

result: cache used
```

### Expected result

the cache should always follow settings and be used

### Actual result

cache used inconsistently

If the issue is that it won't cache from public ip's (even though they are same subnet as adguard itself and thus local), there either should be a setting for it, or it should actually follow the private ip's setting in the configuration file, I tried adding my subnet there and it still ignores cache.

### Additional information and/or screenshots

_No response_

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.