Skip to content

Commit

Permalink
Pull request 649: Restrict host normalization to DoH only
Browse files Browse the repository at this point in the history
Merge in ADGUARD-CORE-LIBS/dns-libs from fix/AG-32164 to master

Squashed commit of the following:

commit 55b92acca3c6e7911b4c95d3d0b4271164638d0c
Author: Sergey Fionov <[email protected]>
Date:   Fri Apr 19 09:41:02 2024 +0300

    Restrict host normalization to DoH only
  • Loading branch information
sfionov committed Apr 19, 2024
1 parent 8f8a050 commit 2c6f1bd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion upstream/upstream_doq.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ void DoqUpstream::send_requests() {
}

Error<Upstream::InitError> DoqUpstream::init() {
auto error = this->init_url_port(/*allow_creds*/ false, /*allow_path*/ false, DEFAULT_DOQ_PORT, /*host_to_lowercase*/ true);
auto error = this->init_url_port(/*allow_creds*/ false, /*allow_path*/ false, DEFAULT_DOQ_PORT, /*host_to_lowercase*/ false);
if (error) {
return error;
}
Expand Down
2 changes: 1 addition & 1 deletion upstream/upstream_dot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ DotUpstream::DotUpstream(const UpstreamOptions &opts, const UpstreamFactoryConfi
}

Error<Upstream::InitError> DotUpstream::init() {
auto error = this->init_url_port(/*allow_creds*/ false, /*allow_path*/ false, DEFAULT_DOT_PORT, /*host_to_lowercase*/ true);
auto error = this->init_url_port(/*allow_creds*/ false, /*allow_path*/ false, DEFAULT_DOT_PORT, /*host_to_lowercase*/ false);
if (error) {
return error;
}
Expand Down
2 changes: 1 addition & 1 deletion upstream/upstream_plain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ PlainUpstream::PlainUpstream(const UpstreamOptions &opts, const UpstreamFactoryC

Error<Upstream::InitError> PlainUpstream::init() {
if (m_options.address.find("://") != std::string::npos) {
auto error = this->init_url_port(/*allow_creds*/ false, /*allow_path*/ false, DEFAULT_PLAIN_PORT, /*host_to_lowercase*/ true);
auto error = this->init_url_port(/*allow_creds*/ false, /*allow_path*/ false, DEFAULT_PLAIN_PORT, /*host_to_lowercase*/ false);
if (error) {
return error;
}
Expand Down

0 comments on commit 2c6f1bd

Please sign in to comment.