mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2025-09-10 18:59:41 +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:
parent
81d49d2f60
commit
44a5408bc0
4 changed files with 22 additions and 35 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue