containers: fix broken /etc/hosts entries when localAddress contains a netmask

This commit is contained in:
montag451
2016-12-12 09:20:28 +01:00
committed by Jörg Thalheim
parent 4889c271ca
commit ea5551b551
2 changed files with 53 additions and 1 deletions
+1 -1
View File
@@ -676,7 +676,7 @@ in
# Generate /etc/hosts entries for the containers.
networking.extraHosts = concatStrings (mapAttrsToList (name: cfg: optionalString (cfg.localAddress != null)
''
${cfg.localAddress} ${name}.containers
${head (splitString "/" cfg.localAddress)} ${name}.containers
'') config.containers);
networking.dhcpcd.denyInterfaces = [ "ve-*" "vb-*" ];