Surround the IPv6 addresses in square brackets

This commit is contained in:
Charlotte 🦝 Delenk 2022-01-14 21:22:37 +01:00
parent c47551467c
commit 935a03a56a
Signed by: darkkirb
GPG key ID: 015E3768A70AFBC5

View file

@ -1,7 +1,7 @@
{ config, pkgs, ... }:
let
removeCIDR = cidr: builtins.elemAt (builtins.split "/" cidr) 0;
filterIPs = cidrs: builtins.map removeCIDR cidrs;
filterIPs = cidrs: builtins.map "${removeCIDR cidrs}";
listenIPs = filterIPs config.networking.wireguard.interfaces."wg0".ips;
in
{