Merge pull request #158176 from lheckemann/fix-tempaddr

network-interfaces: use altered interface name for setting use_tempaddr
This commit is contained in:
Linus Heckemann 2022-03-29 10:39:46 +02:00 committed by GitHub
commit 3631db714c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1451,7 +1451,7 @@ in
sysctl-value = tempaddrValues.${cfg.tempAddresses}.sysctl;
in ''
# enable and prefer IPv6 privacy addresses by default
ACTION=="add", SUBSYSTEM=="net", RUN+="${pkgs.bash}/bin/sh -c 'echo ${sysctl-value} > /proc/sys/net/ipv6/conf/%k/use_tempaddr'"
ACTION=="add", SUBSYSTEM=="net", RUN+="${pkgs.bash}/bin/sh -c 'echo ${sysctl-value} > /proc/sys/net/ipv6/conf/$name/use_tempaddr'"
'';
})
(pkgs.writeTextFile rec {