[bosh] Use ConnectionConfiguration.getHostString() in BOSHConfiguration

master
Florian Schmaus 3 months ago
parent 00bcbff5ee
commit aa441d743c
  1. 5
      smack-bosh/src/main/java/org/jivesoftware/smack/bosh/BOSHConfiguration.java

@ -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() {

Loading…
Cancel
Save