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; type = types.port;
default = 5353; 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 { passwordFile = mkOption {
description = '' description = ''
The file where the password is stored. The file where the password is stored.
@ -126,6 +136,8 @@ let
cfg.passwordFile cfg.passwordFile
"--address" "--address"
cfg.bindIp cfg.bindIp
"--ip-type"
cfg.allowedIPVersion
"--port" "--port"
(builtins.toString cfg.bindPort) (builtins.toString cfg.bindPort)
"--ttl" "--ttl"