Skip to content

Commit

Permalink
Use our own external ipcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
Maescool committed Mar 11, 2016
1 parent 068c21f commit 9b75b13
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/main/java/com/mojang/mojam/gui/HostingWaitMenu.java
@@ -1,5 +1,13 @@
package com.mojang.mojam.gui;

import com.mojang.mojam.MojamComponent;
import com.mojang.mojam.downloader.Downloader;
import com.mojang.mojam.gui.components.Button;
import com.mojang.mojam.gui.components.ClickableComponent;
import com.mojang.mojam.gui.components.Font;
import com.mojang.mojam.screen.AbstractScreen;
import com.mojang.mojam.screen.Art;

import java.awt.event.KeyEvent;
import java.io.BufferedReader;
import java.io.IOException;
Expand All @@ -8,13 +16,6 @@
import java.net.MalformedURLException;
import java.net.URL;

import com.mojang.mojam.MojamComponent;
import com.mojang.mojam.gui.components.Button;
import com.mojang.mojam.gui.components.ClickableComponent;
import com.mojang.mojam.gui.components.Font;
import com.mojang.mojam.screen.Art;
import com.mojang.mojam.screen.AbstractScreen;

public class HostingWaitMenu extends GuiMenu {

public String myIpLAN;
Expand Down Expand Up @@ -68,9 +69,10 @@ public void keyTyped(KeyEvent e) {
}

public void searchIpWAN() {
System.setProperty("http.agent", Downloader.getUserAgent());
URL whatismyip;
try {
whatismyip = new URL("http://automation.whatismyip.com/n09230945.asp");
whatismyip = new URL("https://catacombsnatch.net/ipcheck");
BufferedReader in;
try {
in = new BufferedReader(new InputStreamReader(whatismyip.openStream()));
Expand Down

0 comments on commit 9b75b13

Please sign in to comment.