mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
Merge branch '4.4'
This commit is contained in:
commit
e51bfb1dbe
2 changed files with 12 additions and 1 deletions
|
@ -302,6 +302,16 @@ public abstract class ConnectionConfiguration {
|
|||
return new SmackTlsContext(context, daneVerifier);
|
||||
}
|
||||
|
||||
public String getHostString() {
|
||||
if (hostAddress != null) {
|
||||
return hostAddress.toString();
|
||||
}
|
||||
if (host != null) {
|
||||
return host.toString();
|
||||
}
|
||||
return xmppServiceDomain.toString();
|
||||
}
|
||||
|
||||
public DnsName getHost() {
|
||||
return host;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue