Group listenAddress for config

f5bfbce0ad825ffad701a9b4d7c2b1b6c6f4ff97

Kristan Schlikow <kristian@schlikow.de>

Signed
2 files changed, +5 -4Ignore whitespace
default/config.yaml+3 -2
@@ -7,8 +7,9 @@ cardsCacheCapacity: 100
77# Listen for incoming connections
88listen: false
99# Listen on a specific address, supports IPv4 and IPv6
10-listenAddressIPv6: [::]
10+listenAddress:
1111listenAddressIPv4 ipv4: 0.0.0.0
12+ ipv6: [::]
1213# Enables IPv6 and/or IPv4 protocols. Need to have at least one enabled!
1314# - Use option "auto" to automatically detect support
1415# - 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
266266/** @type {boolean} */
267267const listen = cliArguments.listen ?? getConfigValue('listen', DEFAULT_LISTEN);
268268/** @type {string} */
269269const listenAddressIPv6 = cliArguments.listenAddressIPv6 ?? getConfigValue('listenAddressIPv6listenAddress.ipv6', DEFAULT_LISTEN_ADDRESS_IPV6);
270270/** @type {string} */
271271const listenAddressIPv4 = cliArguments.listenAddressIPv4 ?? getConfigValue('listenAddressIPv4listenAddress.ipv4', DEFAULT_LISTEN_ADDRESS_IPV4);
272272/** @type {boolean} */
273273const enableCorsProxy = cliArguments.corsProxy ?? getConfigValue('enableCorsProxy', DEFAULT_CORS_PROXY);
274274const enableWhitelist = cliArguments.whitelist ?? getConfigValue('whitelistMode', DEFAULT_WHITELIST);