Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DNS Rewrites, duplicates items... maybe bug #6977

Open
4 tasks done
andylau004 opened this issue May 7, 2024 · 1 comment
Open
4 tasks done

DNS Rewrites, duplicates items... maybe bug #6977

andylau004 opened this issue May 7, 2024 · 1 comment

Comments

@andylau004
Copy link

Prerequisites

Platform (OS and CPU architecture)

Linux, AMD64 (aka x86_64)

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

master

Action

image

DNS rewrites

Allows to easily configure custom DNS response for a specific domain name.

in this web ,, background code

// handleRewriteAdd is the handler for the POST /control/rewrite/add HTTP API.
func (d *DNSFilter) handleRewriteAdd(w http.ResponseWriter, r *http.Request) {

image

Why not use map to remove duplicates dns rewrites items.
or
before append ,,check if exist...

why not

???

Expected result

before append ,,check if exist...

Actual result

so many duplicates item.

Additional information and/or screenshots

No response

@andylau004
Copy link
Author

Has anyone ever been encounter this problem ???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant