mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-12-22 10:37:59 +01:00
fix: Bosh configuration when bosh URI contains IP address.
This commit is contained in:
parent
881ebe731d
commit
d0db485c24
1 changed files with 3 additions and 1 deletions
|
@ -77,7 +77,9 @@ public final class BOSHConfiguration extends ConnectionConfiguration {
|
||||||
}
|
}
|
||||||
|
|
||||||
public URI getURI() throws URISyntaxException {
|
public URI getURI() throws URISyntaxException {
|
||||||
return new URI((https ? "https://" : "http://") + this.host + ":" + this.port + file);
|
return new URI((https ? "https://" : "http://")
|
||||||
|
+ (this.host != null ? this.host : this.hostAddress)
|
||||||
|
+ ":" + this.port + file);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Map<String, String> getHttpHeaders() {
|
public Map<String, String> getHttpHeaders() {
|
||||||
|
|
Loading…
Reference in a new issue