mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
builtin:fetchurl: Enable TLS verification
This is better for privacy and to avoid leaking netrc credentials in a MITM attack, but also the assumption that we check the hash no longer holds in some cases (in particular for impure derivations). Partially reverts5db358d4d7
. (cherry picked from commitc04bc17a5a
)
This commit is contained in:
parent
b4fcd27590
commit
d4824c8ff7
@ -38,10 +38,7 @@ void builtinFetchurl(
|
||||
|
||||
auto source = sinkToSource([&](Sink & sink) {
|
||||
|
||||
/* No need to do TLS verification, because we check the hash of
|
||||
the result anyway. */
|
||||
FileTransferRequest request(url);
|
||||
request.verifyTLS = false;
|
||||
request.decompress = false;
|
||||
|
||||
auto decompressor = makeDecompressionSink(
|
||||
|
Loading…
Reference in New Issue
Block a user