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:
parent
34ce8a69f6
commit
a47dd0bfac
1 changed files with 12 additions and 0 deletions
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue