Dont accept a 300 response
This commit is contained in:
parent
a8c43fb28a
commit
54b2bbb92e
@ -112,7 +112,7 @@ public class JoinListener extends PlayerListener {
|
|||||||
log.info("Authing "+user+" against "+authServer);
|
log.info("Authing "+user+" against "+authServer);
|
||||||
HttpURLConnection conn = (HttpURLConnection)authServer.openConnection();
|
HttpURLConnection conn = (HttpURLConnection)authServer.openConnection();
|
||||||
int code = conn.getResponseCode();
|
int code = conn.getResponseCode();
|
||||||
if (code >= 200 && code <= 300)
|
if (code >= 200 && code < 300)
|
||||||
return true;
|
return true;
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user