I have a question, nothing too serious.
What's this used for? Or better yet, what is it? I have seen this multiple times in many revisions, such as 562's, 508's, etc.
Code:
final boolean method2758(int i) {
try {
String string = ClientScriptMap.anApplet6044.getDocumentBase().getHost().toLowerCase();
if (string.equals("jagex.com") || string.endsWith(".jagex.com"))
return true;
if (string.equals("matrixftw.com") || string.endsWith(".matrixftw.com"))
return true;
if (string.equals("matrixrsps.com") || string.endsWith(".matrixrsps.com"))
return true;
if (string.equals("runescape.com") || string.endsWith(".runescape.com"))
return true;
if (string.equals("stellardawn.com") || string.endsWith(".stellardawn.com"))
return true;
if (string.endsWith("127.0.0.1") || string.endsWith(Loader.IP))
return true;
for (; (string.length() > 0 && string.charAt(string.length() - 1) >= '0' && string.charAt(string.length() - 1) <= '9'); string = string.substring(0, string.length() - 1)) {
}
if (string.endsWith("192.168.1."))
return true;
method2778("invalidhost", 827144132);
return false;
} catch (RuntimeException runtimeexception) {
throw Class346.method4175(runtimeexception, new StringBuilder().append("mc.g(").append(')').toString());
}
}
This piece of code, however is from the 718 build of Matrix. I found it in the client. Class 291 to be exact. So yeah, if you can tell me what this is, explain to me what it does- I'd be forever grateful.