mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-02-17 07:37:18 +02:00
Merge pull request #4318 from matthewbauer/add-slash-to-trusted-binary-cache
Canonicalize binary caches with ‘/’ when one is missing
This commit is contained in:
commit
1d1a85eb0a
1 changed files with 2 additions and 0 deletions
|
@ -215,6 +215,8 @@ struct ClientSettings
|
||||||
for (auto & s : ss)
|
for (auto & s : ss)
|
||||||
if (trusted.count(s))
|
if (trusted.count(s))
|
||||||
subs.push_back(s);
|
subs.push_back(s);
|
||||||
|
else if (!hasSuffix(s, "/") && trusted.count(s + "/"))
|
||||||
|
subs.push_back(s + "/");
|
||||||
else
|
else
|
||||||
warn("ignoring untrusted substituter '%s'", s);
|
warn("ignoring untrusted substituter '%s'", s);
|
||||||
res = subs;
|
res = subs;
|
||||||
|
|
Loading…
Add table
Reference in a new issue