add comment about bad code

This commit is contained in:
ayunami2000 2022-02-01 17:57:06 -05:00
parent 303cf54460
commit fb2cbccb4a
3 changed files with 19322 additions and 19322 deletions

File diff suppressed because it is too large Load Diff

View File

@ -15,7 +15,7 @@
<script type="text/javascript" src="music.js"></script> <script type="text/javascript" src="music.js"></script>
<script type="text/javascript" src="classes.js?t=updateme7"></script> <script type="text/javascript" src="classes.js?t=updateme8"></script>
<script type="text/javascript"> <script type="text/javascript">
//window.eag_self_proxy=true;//set to true to set the default proxy to the current url //window.eag_self_proxy=true;//set to true to set the default proxy to the current url
//window.eag_proxy_list="";//set to a string of comma-separated proxy ip:port combinations for a custom proxy list //window.eag_proxy_list="";//set to a string of comma-separated proxy ip:port combinations for a custom proxy list

View File

@ -210,7 +210,7 @@ public class GuiScreenEditProfile extends GuiScreen {
proxyInvalid=0; proxyInvalid=0;
this.drawCenteredString(this.fontRenderer, "checking proxy...", this.width / 2, 5, 16777215); this.drawCenteredString(this.fontRenderer, "checking proxy...", this.width / 2, 5, 16777215);
try { try {
if(!ConfigConstants.ipPattern.matcher(this.mc.gameSettings.proxy).matches())throw new IOException("lol"); if(!ConfigConstants.ipPattern.matcher(this.mc.gameSettings.proxy).matches())throw new IOException("lol");//for some reason, direct ip didnt match...
URL url = new URL("http" + (EaglerAdapter.isSSLPage() ? "s" : "") + "://" + this.mc.gameSettings.proxy + "/api/vm/net/connect"); URL url = new URL("http" + (EaglerAdapter.isSSLPage() ? "s" : "") + "://" + this.mc.gameSettings.proxy + "/api/vm/net/connect");
URLConnection con = url.openConnection(); URLConnection con = url.openConnection();
HttpURLConnection http = (HttpURLConnection) con; HttpURLConnection http = (HttpURLConnection) con;