wireguard/home: Fix peer-to-peer connection

Public clients also need to have all peers configured, so they can
connect to them.
This commit is contained in:
Simon Bruder 2021-09-03 15:31:45 +02:00
parent bbda930013
commit d621e84a00
Signed by: simon
GPG key ID: 8D3C82F9F309F8EC

View file

@ -67,7 +67,7 @@ in
endpoint = "${hostname}.sbruder.de:51820"; endpoint = "${hostname}.sbruder.de:51820";
})) }))
(lib.filterAttrs (lib.filterAttrs
(n: v: n != config.networking.hostName && (enableServer || v.public)) (n: v: n != config.networking.hostName && (enableServer || v.public || isPublic))
peers)); peers));
}; };