Disable message pattern lookup by default

This commit is contained in:
Glavo 2021-12-10 03:26:21 +08:00 committed by Yuhui Huang
parent 55092326a4
commit c31269a358

View File

@ -178,6 +178,9 @@ public class DefaultLauncher extends Launcher {
res.addDefault("-Dfml.ignoreInvalidMinecraftCertificates=", "true");
res.addDefault("-Dfml.ignorePatchDiscrepancies=", "true");
// Fix RCE vulnerability of log4j2
res.addDefault("-Dlog4j2.formatMsgNoLookups=", "true");
}
Proxy proxy = options.getProxy();