fixed ip reporting for dns look ups
This commit is contained in:
parent
2ed71df01a
commit
3c90dbe723
|
@ -56,9 +56,9 @@ public class AndroidUsingLinkProperties extends AbstractDNSServerLookupMechanism
|
||||||
List<String> out = new ArrayList<>();
|
List<String> out = new ArrayList<>();
|
||||||
for(InetAddress addr : in) {
|
for(InetAddress addr : in) {
|
||||||
if (addr instanceof Inet4Address) {
|
if (addr instanceof Inet4Address) {
|
||||||
out.add(0, addr.toString());
|
out.add(0, addr.getHostAddress());
|
||||||
} else {
|
} else {
|
||||||
out.add(addr.toString());
|
out.add(addr.getHostAddress());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return out;
|
return out;
|
||||||
|
|
|
@ -366,7 +366,7 @@ public class XmppConnection implements Runnable {
|
||||||
addr = new InetSocketAddress(result.getIp(), result.getPort());
|
addr = new InetSocketAddress(result.getIp(), result.getPort());
|
||||||
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString()
|
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString()
|
||||||
+ ": using values from dns " + result.getHostname().toString()
|
+ ": using values from dns " + result.getHostname().toString()
|
||||||
+ "[" + result.getIp().toString() + "]:" + result.getPort() + " tls: " + features.encryptionEnabled);
|
+ "/" + result.getIp().getHostAddress() + ":" + result.getPort() + " tls: " + features.encryptionEnabled);
|
||||||
} else {
|
} else {
|
||||||
addr = new InetSocketAddress(result.getHostname().toString(), result.getPort());
|
addr = new InetSocketAddress(result.getHostname().toString(), result.getPort());
|
||||||
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString()
|
Log.d(Config.LOGTAG, account.getJid().toBareJid().toString()
|
||||||
|
|
Loading…
Reference in New Issue