From 8466fc33421c8a3102d2f6b6d44cd52d6126df34 Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Mon, 8 Jul 2024 13:40:28 +0300 Subject: [PATCH] all: upd hint --- README.md | 2 +- main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 19e43c81b..15cc62a21 100644 --- a/README.md +++ b/README.md @@ -56,6 +56,7 @@ Application Options: --https-userinfo= If set, all DoH queries are required to have this basic authentication information. -g, --dnscrypt-config= Path to a file with DNSCrypt configuration. You can generate one using https://github.com/ameshkov/dnscrypt --edns-addr= Send EDNS Client Address + --upstream-mode= Defines the upstreams logic mode, possible values: load_balance, parallel, fastest_addr (default: load_balance) -l, --listen= Listening addresses -p, --port= Listening ports. Zero value disables TCP and UDP listeners -s, --https-port= Listening ports for DNS-over-HTTPS @@ -86,7 +87,6 @@ Application Options: --insecure Disable secure TLS certificate validation --ipv6-disabled If specified, all AAAA requests will be replied with NoError RCode and empty answer --http3 Enable HTTP/3 support - --upstream-mode If specified, determines the upstream usage logic. --cache-optimistic If specified, optimistic DNS cache is enabled --cache If specified, DNS cache is enabled --refuse-any If specified, refuse ANY requests diff --git a/main.go b/main.go index 7d014ea7c..a9ba033f8 100644 --- a/main.go +++ b/main.go @@ -68,7 +68,7 @@ type Options struct { // UpstreamMode determines the logic through which upstreams will be used. // If not specified the [proxy.UpstreamModeLoadBalance] is used. - UpstreamMode string `yaml:"upstream-mode" long:"upstream-mode" description:"Upstreams logic mode" optional:"yes" optional-value:"load_balance"` + UpstreamMode string `yaml:"upstream-mode" long:"upstream-mode" description:"Defines the upstreams logic mode, possible values: load_balance, parallel, fastest_addr (default: load_balance)" optional:"yes" optional-value:"load_balance"` // ListenAddrs is the list of server's listen addresses. ListenAddrs []string `yaml:"listen-addrs" short:"l" long:"listen" description:"Listening addresses"`