Comparison

util/prosodyctl/check.lua @ 13254:a2ba3f06dcf4 0.12 0.12.4

util.prosodyctl.check: Correct modern replacement for 'disallow_s2s' The code would have suggested adding to modules_enabled instead of modules_disabled
author Kim Alvefur <zash@zash.se>
date Sun, 27 Aug 2023 15:46:19 +0200
parent 13219:22763b30e458
child 13256:53708752cc5d
comparison
equal deleted inserted replaced
13247:1bb4aa803b32 13254:a2ba3f06dcf4
367 return kind 367 return kind
368 end 368 end
369 local deprecated_replacements = { 369 local deprecated_replacements = {
370 anonymous_login = instead_use("option", "authentication", "anonymous"); 370 anonymous_login = instead_use("option", "authentication", "anonymous");
371 daemonize = "instead, use the --daemonize/-D or --foreground/-F command line flags"; 371 daemonize = "instead, use the --daemonize/-D or --foreground/-F command line flags";
372 disallow_s2s = instead_use("module", "s2s"); 372 disallow_s2s = instead_use("module", "s2s", "modules_disabled");
373 no_daemonize = "instead, use the --daemonize/-D or --foreground/-F command line flags"; 373 no_daemonize = "instead, use the --daemonize/-D or --foreground/-F command line flags";
374 require_encryption = "instead, use 'c2s_require_encryption' and 's2s_require_encryption'"; 374 require_encryption = "instead, use 'c2s_require_encryption' and 's2s_require_encryption'";
375 vcard_compatibility = instead_use("community", "mod_compat_vcard"); 375 vcard_compatibility = instead_use("community", "mod_compat_vcard");
376 use_libevent = instead_use("option", "network_backend", "event"); 376 use_libevent = instead_use("option", "network_backend", "event");
377 whitelist_registration_only = instead_use("option", "allowlist_registration_only"); 377 whitelist_registration_only = instead_use("option", "allowlist_registration_only");