dn42: fix command syntax

This commit is contained in:
Astro 2020-04-24 20:55:37 +02:00
parent 2a039a3b3c
commit fa3e90f23f
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ in {
allowedIPsAsRoutes = false;
postSetup = ''
${pkgs.iproute}/bin/ip addr del ${address4}/32 dev ${name}
${pkgs.iproute}/bin/ip addr add ${address4} dev ${name} ${conf.address4}/32
${pkgs.iproute}/bin/ip addr add ${address4} dev ${name} peer ${conf.address4}/32
'';
peers = [ ({
inherit (conf.wireguard) publicKey;