mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2024-11-21 03:10:58 +08:00
Prohibit JNDI remote invoke
This commit is contained in:
parent
bcb29ef792
commit
5ffbd16800
@ -181,6 +181,9 @@ public class DefaultLauncher extends Launcher {
|
||||
|
||||
// Fix RCE vulnerability of log4j2
|
||||
res.addDefault("-Dlog4j2.formatMsgNoLookups=", "true");
|
||||
res.addDefault("-Djava.rmi.server.useCodebaseOnly=", "true");
|
||||
res.addDefault("-Dcom.sun.jndi.rmi.object.trustURLCodebase=", "false");
|
||||
res.addDefault("-Dcom.sun.jndi.cosnaming.object.trustURLCodebase=", "false");
|
||||
}
|
||||
|
||||
Proxy proxy = options.getProxy();
|
||||
|
Loading…
Reference in New Issue
Block a user