Commit dc479a2f authored by artdeell's avatar artdeell
Browse files

Resolver changes

- Modified ResConfHack to read resolv data from the Java property
- Added auto-unpacking of premade resolv.conf and setting the Java property
(Now SRV resolving should work on Java 17 by default)
parent de50fd93
Showing with 5 additions and 1 deletion
+5 -1
No preview for this file type
nameserver 8.8.8.8
nameserver 8.8.4.4
\ No newline at end of file
......@@ -338,7 +338,7 @@ public class PojavLoginActivity extends BaseActivity
Tools.copyAssetFile(this, "options.txt", Tools.DIR_GAME_NEW, false);
// TODO: Remove after implement.
Tools.copyAssetFile(this, "launcher_profiles.json", Tools.DIR_GAME_NEW, false);
Tools.copyAssetFile(this,"resolv.conf",Tools.DIR_DATA, true);
AssetManager am = this.getAssets();
unpackComponent(am, "caciocavallo");
......
......@@ -346,6 +346,8 @@ public class JREUtils {
"-Dglfwstub.windowHeight=" + CallbackBridge.windowHeight,
"-Dglfwstub.initEgl=false",
"-Dext.net.resolvPath=" +new File(Tools.DIR_DATA,"resolv.conf").getAbsolutePath(),
"-Dnet.minecraft.clientmodname=" + Tools.APP_NAME,
"-Dfml.earlyprogresswindow=false" //Forge 1.14+ workaround
};
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment