feat(module): add option for setting --ip-type

This makes it easy to set the server to ipv4-only mode.
This commit is contained in:
Jalil David Salamé Messina 2025-01-26 22:08:46 +01:00
parent 34ce8a69f6
commit a47dd0bfac
Signed by: jalil
GPG key ID: F016B9E770737A0B

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"