1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 09:39:39 +02:00

Move host/port from ConnectionConfiguration to XMPPConnection

There semantic is that they now report the host used to establish the
connection. Therefore BOSHConfiguration needs to hostAddresses for
getURI().
This commit is contained in:
Florian Schmaus 2014-03-18 09:27:45 +01:00
parent 81d49d2f60
commit 44a5408bc0
4 changed files with 22 additions and 35 deletions

View file

@ -439,7 +439,8 @@ public class TCPConnection extends XMPPConnection {
}
if (exception == null) {
// We found a host to connect to, break here
config.setUsedHostAddress(hostAddress);
host = hostAddress.getFQDN();
port = hostAddress.getPort();
break;
}
hostAddress.setException(exception);