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;
|
||||
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"
|
||||
|
|
Loading…
Add table
Reference in a new issue