Skip to content

_servers switch doesn't work #3273

Description

Thanks for taking the time to report a bug! Before filing, please note:

Need help or have a question? The issue tracker is for confirmed, reproducible bugs only. For installation help, configuration help, troubleshooting, or general questions, please read the documentation first. If you still need assistance, use our Q&A Discussions instead - you'll likely get a faster response there.


Before submitting

Please make sure:

  • You've read the documentation and this is not answered there already
  • You're running the latest version of dnscrypt-proxy (precompiled binaries from this repository)
  • The software is correctly installed and configured
  • You can reliably reproduce the issue

If the bug requires specific steps to reproduce, please include detailed instructions that would work on a fresh install of macOS, Windows, OpenBSD, or Ubuntu Linux.

Not sure if it's a bug? Start a discussion first - we're happy to help figure it out.


Diagnostic output

Please run these commands and paste the output:

2.1.16
  • I read the documentation and this is not answered there
  • Initially raised as discussion #...

What's happening?

https://dnscrypt-proxy/dnscrypt-proxy/example-dnscrypt-proxy.toml](https://github.com/DNSCrypt/dnscrypt-proxy/blob/e7af9f2a3f9d634e6d2513b7bfa37c9682ad035b/dnscrypt-proxy/example-dnscrypt-proxy.toml#L68-L75

The following _servers are not being used - when I switch one of it to false, dnscrypt-proxy still try to connect to them to perform connection test.

Steps

Set DOH server to true, set dnscrypt server to false
Set log level to 2
Start dnscrypt-proxy config toml
Look at output

Expected Result

When I set it to false, don't connect it at all.

When does this occur?

Where does it happen?

How do we replicate the issue?

@jedisct1 Seriously, this is a BUG.

1. Make dnscrypt-proxy.toml by copy example

2. Add some servers like this:

server_names = ['cc',...]


# DNSCrypt and DOH servers' stamps below
[static]
   [static.'cc']
     stamp = 'sdns://ccccc'
...

2. Flip those _servers lines (e.g., dnscrypt false, doh true)

3. Set log level to 2 to make sure those are visible

4. run: dnscrypt-proxy -config /full/path/to/dnscrypt-proxy.toml

4. watch all servers listed in dnscrypt-proxy.toml getting tested

Expected behavior

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions