Merge pull request #248502 from kurnevsky/wstunnel

wstunnel: correct listen option
This commit is contained in:
Yorick 2023-09-09 18:45:45 +02:00 committed by GitHub
commit df123af8b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.";
type = types.submodule hostPortSubmodule;
default = {
address = "0.0.0.0";
host = "0.0.0.0";
port = if config.enableHTTPS then 443 else 80;
};
defaultText = literalExpression ''
{
address = "0.0.0.0";
host = "0.0.0.0";
port = if enableHTTPS then 443 else 80;
}
'';