feat[server]: network management

This commit is contained in:
Leon Schwarzäugl 2025-11-28 13:27:11 +01:00
parent d56d65aac5
commit 626d990b4a
Signed by: swarsel
GPG key ID: 26A54C31F2A4FD84
17 changed files with 415 additions and 356 deletions

View file

@ -82,7 +82,8 @@ let
if netSubmod.config.cidrv6 == null then
null
else
lib.net.cidr.hostCidr hostSubmod.config.id netSubmod.config.cidrv6;
# if we use the /32 wan address as local address directly, do not use the network address in ipv6
lib.net.cidr.hostCidr (if hostSubmod.config.id == 0 then 1 else hostSubmod.config.id) netSubmod.config.cidrv6;
};
};
})