mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-03 00:42:54 +00:00
RequestServer: Use default certificate for DNS over TLS
This commit is contained in:
parent
65966020d1
commit
42a18a4a91
Notes:
github-actions[bot]
2025-02-18 14:47:51 +00:00
Author: https://github.com/devgianlu
Commit: 42a18a4a91
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3611
Reviewed-by: https://github.com/alimpfard ✅
1 changed files with 5 additions and 1 deletions
|
@ -51,8 +51,12 @@ static NonnullRefPtr<Resolver> default_resolver()
|
|||
}
|
||||
|
||||
if (g_dns_info.use_dns_over_tls) {
|
||||
TLS::Options options;
|
||||
if (!g_default_certificate_path.is_empty())
|
||||
options.set_root_certificates_path(g_default_certificate_path);
|
||||
|
||||
return DNS::Resolver::SocketResult {
|
||||
MaybeOwned<Core::Socket>(TRY(TLS::TLSv12::connect(*g_dns_info.server_address, *g_dns_info.server_hostname))),
|
||||
MaybeOwned<Core::Socket>(TRY(TLS::TLSv12::connect(*g_dns_info.server_address, *g_dns_info.server_hostname, move(options)))),
|
||||
DNS::Resolver::ConnectionMode::TCP,
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue