Surround the IPv6 addresses in square brackets
This commit is contained in:
parent
c47551467c
commit
935a03a56a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue