Mitigation for the Apache Log4j RCE in 1.8.x-1.18

Related issue: #2378
This commit is contained in:
Duy Tran Khanh 2021-12-12 14:19:03 +07:00 committed by GitHub
parent a24d3cf1dd
commit 123a185d51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -361,6 +361,8 @@ public class JREUtils {
"-Dext.net.resolvPath=" +new File(Tools.DIR_DATA,"resolv.conf").getAbsolutePath(),
"-Dlog4j2.formatMsgNoLookup=true", //Log4j RCE mitigation
"-Dnet.minecraft.clientmodname=" + Tools.APP_NAME,
"-Dfml.earlyprogresswindow=false" //Forge 1.14+ workaround
};