mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-14 05:29:20 +03:00
wstunnel: correct listen option
This commit is contained in:
parent
4f3a074422
commit
5110d348b2
1 changed files with 2 additions and 2 deletions
|
@ -86,12 +86,12 @@ let
|
||||||
description = mdDoc "Address and port to listen on. Setting the port to a value below 1024 will also give the process the required `CAP_NET_BIND_SERVICE` capability.";
|
description = mdDoc "Address and port to listen on. Setting the port to a value below 1024 will also give the process the required `CAP_NET_BIND_SERVICE` capability.";
|
||||||
type = types.submodule hostPortSubmodule;
|
type = types.submodule hostPortSubmodule;
|
||||||
default = {
|
default = {
|
||||||
address = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
port = if config.enableHTTPS then 443 else 80;
|
port = if config.enableHTTPS then 443 else 80;
|
||||||
};
|
};
|
||||||
defaultText = literalExpression ''
|
defaultText = literalExpression ''
|
||||||
{
|
{
|
||||||
address = "0.0.0.0";
|
host = "0.0.0.0";
|
||||||
port = if enableHTTPS then 443 else 80;
|
port = if enableHTTPS then 443 else 80;
|
||||||
}
|
}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue