Skip to content

Commit

Permalink
External ip is showing now correctly. New ip api address added.
Browse files Browse the repository at this point in the history
  • Loading branch information
irinil committed Jul 1, 2020
1 parent 47ae834 commit 16779a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/tudarmstadt/informatik/hostage/Hostage.java
Expand Up @@ -502,10 +502,10 @@ private void cancelNotification() {
private Listener createListener(String protocolName, int port) {
for (Protocol protocol : implementedProtocols) {
if (protocolName.equals(protocol.toString())) {
Listener listener = new Listener(this, protocol, port);
if(protocolName.equals("MQTT")) {
return addMQTTListener(protocol, port);
}
Listener listener = new Listener(this, protocol, port);
listeners.add(listener);
return listener;
}
Expand Down Expand Up @@ -760,7 +760,7 @@ private void updateConnectionInfo() {


SetExternalIPTask externalIPTask = new SetExternalIPTask();
externalIPTask.execute("http://ip2country.sourceforge.net/ip2c.php?format=JSON");
externalIPTask.execute("https://api.ipify.org?format=json");

this.mProtocolActiveAttacks.clear();
}
Expand Down

0 comments on commit 16779a7

Please sign in to comment.