mirror of
https://github.com/unmojang/OnlineModeFix.git
synced 2025-09-12 08:57:23 -04:00
Removed debug logs.
This commit is contained in:
parent
1b3b36f281
commit
6c72b8b44a
@ -42,7 +42,7 @@ public class ProxyThread implements Runnable {
|
|||||||
Socket clientSocket = null;
|
Socket clientSocket = null;
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
System.out.println(serverSocket.get().getInetAddress() + ":" + serverSocket.get().getLocalPort());
|
// System.out.println(serverSocket.get().getInetAddress() + ":" + serverSocket.get().getLocalPort());
|
||||||
|
|
||||||
while (running.get()) {
|
while (running.get()) {
|
||||||
//Stream to put data to the browser
|
//Stream to put data to the browser
|
||||||
@ -86,12 +86,12 @@ public class ProxyThread implements Runnable {
|
|||||||
int headerSize = requestString.split("\r\n\r\n")[0].length() + 4;
|
int headerSize = requestString.split("\r\n\r\n")[0].length() + 4;
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
System.out.println("Request");
|
// System.out.println("Request");
|
||||||
requestHeaders = requestString.split("\r\n\r\n")[0];
|
requestHeaders = requestString.split("\r\n\r\n")[0];
|
||||||
|
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
System.out.println(requestString);
|
// System.out.println(requestString);
|
||||||
|
|
||||||
String urlString = "";
|
String urlString = "";
|
||||||
try {
|
try {
|
||||||
@ -102,9 +102,6 @@ public class ProxyThread implements Runnable {
|
|||||||
|
|
||||||
// Fix online-mode.
|
// Fix online-mode.
|
||||||
if(urlString.contains("minecraft.net/game/checkserver.jsp?")) {
|
if(urlString.contains("minecraft.net/game/checkserver.jsp?")) {
|
||||||
|
|
||||||
System.out.println("here.");
|
|
||||||
|
|
||||||
String username = null;
|
String username = null;
|
||||||
String serverId = null;
|
String serverId = null;
|
||||||
String ip = null;
|
String ip = null;
|
||||||
@ -198,9 +195,9 @@ public class ProxyThread implements Runnable {
|
|||||||
String contentString = new String(content);
|
String contentString = new String(content);
|
||||||
|
|
||||||
// DEBUG
|
// DEBUG
|
||||||
System.out.println("Response");
|
// System.out.println("Response");
|
||||||
System.out.print(responseHeader);
|
// System.out.print(responseHeader);
|
||||||
System.out.println(contentString);
|
// System.out.println(contentString);
|
||||||
|
|
||||||
InputStream is = connection.getInputStream();
|
InputStream is = connection.getInputStream();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user