mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-22 05:56:15 +02:00
Add localhost alias for ::1 to the sandbox
This commit is contained in:
parent
adab8b916a
commit
c0c31b58a4
1 changed files with 1 additions and 1 deletions
|
@ -2007,7 +2007,7 @@ void DerivationGoal::startBuilder()
|
|||
|
||||
/* Create /etc/hosts with localhost entry. */
|
||||
if (!fixedOutput)
|
||||
writeFile(chrootRootDir + "/etc/hosts", "127.0.0.1 localhost\n");
|
||||
writeFile(chrootRootDir + "/etc/hosts", "127.0.0.1 localhost\n::1 localhost\n");
|
||||
|
||||
/* Make the closure of the inputs available in the chroot,
|
||||
rather than the whole Nix store. This prevents any access
|
||||
|
|
Loading…
Reference in a new issue