Group listenAddress for config

f5bfbce0ad825ffad701a9b4d7c2b1b6c6f4ff97

Kristan Schlikow <kristian@schlikow.de>

Signed
2 files changed, +5 -4Showing whitespace changes
default/config.yaml+3 -2
@@ -7,8 +7,9 @@ cardsCacheCapacity: 100
7# Listen for incoming connections7# Listen for incoming connections
8listen: false8listen: false
9# Listen on a specific address, supports IPv4 and IPv69# Listen on a specific address, supports IPv4 and IPv6
10listenAddressIPv6: [::]10listenAddress:
11listenAddressIPv4: 0.0.0.011 ipv4: 0.0.0.0
12 ipv6: [::]
12# Enables IPv6 and/or IPv4 protocols. Need to have at least one enabled!13# Enables IPv6 and/or IPv4 protocols. Need to have at least one enabled!
13# - Use option "auto" to automatically detect support14# - Use option "auto" to automatically detect support
14# - Use true or false (no qoutes) to enable or disable each protocol15# - Use true or false (no qoutes) to enable or disable each protocol
server.js+2 -2
@@ -266,9 +266,9 @@ const autorun = (cliArguments.autorun ?? getConfigValue('autorun', DEFAULT_AUTOR
266/** @type {boolean} */266/** @type {boolean} */
267const listen = cliArguments.listen ?? getConfigValue('listen', DEFAULT_LISTEN);267const listen = cliArguments.listen ?? getConfigValue('listen', DEFAULT_LISTEN);
268/** @type {string} */268/** @type {string} */
269const listenAddressIPv6 = cliArguments.listenAddressIPv6 ?? getConfigValue('listenAddressIPv6', DEFAULT_LISTEN_ADDRESS_IPV6);269const listenAddressIPv6 = cliArguments.listenAddressIPv6 ?? getConfigValue('listenAddress.ipv6', DEFAULT_LISTEN_ADDRESS_IPV6);
270/** @type {string} */270/** @type {string} */
271const listenAddressIPv4 = cliArguments.listenAddressIPv4 ?? getConfigValue('listenAddressIPv4', DEFAULT_LISTEN_ADDRESS_IPV4);271const listenAddressIPv4 = cliArguments.listenAddressIPv4 ?? getConfigValue('listenAddress.ipv4', DEFAULT_LISTEN_ADDRESS_IPV4);
272/** @type {boolean} */272/** @type {boolean} */
273const enableCorsProxy = cliArguments.corsProxy ?? getConfigValue('enableCorsProxy', DEFAULT_CORS_PROXY);273const enableCorsProxy = cliArguments.corsProxy ?? getConfigValue('enableCorsProxy', DEFAULT_CORS_PROXY);
274const enableWhitelist = cliArguments.whitelist ?? getConfigValue('whitelistMode', DEFAULT_WHITELIST);274const enableWhitelist = cliArguments.whitelist ?? getConfigValue('whitelistMode', DEFAULT_WHITELIST);