feat(webnsupdate): allow running in IPv4/6 only mode #81

Merged
jalil merged 3 commits from push-smkolzzttoty into main 2025-01-26 22:37:32 +01:00
Showing only changes of commit a47dd0bfac - Show all commits

View file

@ -48,6 +48,16 @@ let
type = types.port;
default = 5353;
};
allowedIPVersion = mkOption {
description = ''The allowed IP versions to accept updates from.'';
type = types.enum [
"both"
"ipv4-only"
"ipv6-only"
];
default = "both";
example = "ipv4-only";
};
passwordFile = mkOption {
description = ''
The file where the password is stored.
@ -126,6 +136,8 @@ let
cfg.passwordFile
"--address"
cfg.bindIp
"--ip-type"
cfg.allowedIPVersion
"--port"
(builtins.toString cfg.bindPort)
"--ttl"