make it so proxy and vanilla protocol are OFF by default
This commit is contained in:
parent
38fa645a25
commit
1a99d20c88
32374
javascript/classes.js
32374
javascript/classes.js
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
|
@ -1,33 +0,0 @@
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>query test</title>
|
|
||||||
<script type="text/javascript">
|
|
||||||
window.addEventListener("load", () => {
|
|
||||||
const output = document.getElementById("out");
|
|
||||||
document.getElementById("testButton").addEventListener("click", () => {
|
|
||||||
const ws = new WebSocket(document.getElementById("uriField").value);
|
|
||||||
ws.onopen = (e) => {
|
|
||||||
output.innerText = "please wait";
|
|
||||||
ws.send(document.getElementById("acceptField").value);
|
|
||||||
};
|
|
||||||
ws.onmessage = (e) => {
|
|
||||||
try {
|
|
||||||
output.innerText += JSON.stringify(JSON.parse(e.data), null, 4);
|
|
||||||
}catch(ee) {
|
|
||||||
output.innerText += e.data;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
ws.onclose = (e) => {
|
|
||||||
output.innerText = output.innerText + "\n\nSocket Closed.";
|
|
||||||
};
|
|
||||||
});
|
|
||||||
});
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body style="font-family:sans-serif;">
|
|
||||||
<input type="text" id="uriField" value="ws://127.0.0.1:25565/" /><br />
|
|
||||||
<input type="text" id="acceptField" value="accept: motd" /><br />
|
|
||||||
<button id="testButton">send</button>
|
|
||||||
<pre id="out" style="font-family:sans-serif;"></pre>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
|
@ -8,8 +8,8 @@ import net.minecraft.client.Minecraft;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
public class GameSettings {
|
public class GameSettings {
|
||||||
public static boolean useDefaultProtocol = true;
|
public static boolean useDefaultProtocol = false;
|
||||||
public static boolean useProxy = true;
|
public static boolean useProxy = false;
|
||||||
public static String proxy = "";
|
public static String proxy = "";
|
||||||
public static String getNewProxy(){
|
public static String getNewProxy(){
|
||||||
if(ConfigConstants.proxies.length==1)return ConfigConstants.proxies[0];
|
if(ConfigConstants.proxies.length==1)return ConfigConstants.proxies[0];
|
||||||
|
|
Loading…
Reference in New Issue
Block a user