1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-12-22 10:37:59 +01:00

[bosh] Use ConnectionConfiguration.getHostString() in BOSHConfiguration

This commit is contained in:
Florian Schmaus 2022-05-18 21:45:32 +02:00
parent 00bcbff5ee
commit aa441d743c

View file

@ -77,9 +77,8 @@ public final class BOSHConfiguration extends ConnectionConfiguration {
}
public URI getURI() throws URISyntaxException {
return new URI((https ? "https://" : "http://")
+ (this.host != null ? this.host : this.hostAddress)
+ ":" + this.port + file);
String uri = https ? "https://" : "http://" + getHostString() + ":" + this.port + file;
return new URI(uri);
}
public Map<String, String> getHttpHeaders() {