Skip to content

Commit

Permalink
nixos/unbound: correct indented interface/access lists
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Nov 3, 2017
1 parent 19d67e1 commit 2e6daff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nixos/modules/services/networking/unbound.nix
Expand Up @@ -8,9 +8,9 @@ let

stateDir = "/var/lib/unbound";

access = concatMapStrings (x: " access-control: ${x} allow\n") cfg.allowedAccess;
access = concatMapStringsSep "\n " (x: "access-control: ${x} allow") cfg.allowedAccess;

interfaces = concatMapStrings (x: " interface: ${x}\n") cfg.interfaces;
interfaces = concatMapStringsSep "\n " (x: "interface: ${x}") cfg.interfaces;

isLocalAddress = x: substring 0 3 x == "::1" || substring 0 9 x == "127.0.0.1";

Expand Down

0 comments on commit 2e6daff

Please sign in to comment.