diff --git a/lib.nix b/lib.nix index feb1155..9189d1a 100644 --- a/lib.nix +++ b/lib.nix @@ -60,7 +60,7 @@ let getSiteNetwork = siteName: entities.sites."${siteName}".network; getSiteV4PrefixLength = siteName: - toInt (elemAt (splitString "/" (getSiteNetwork siteName))); + toInt (elemAt (splitString "/" (getSiteNetwork siteName)) 1); getSiteV6PrefixLength = siteName: abort "not implemented: getSiteV6PrefixLength";