mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 03:52:06 +01:00
Merge pull request #576 from Flowdalic/inet-addr-ignore-zone-id
Ignore zone IDs of internet addresses
This commit is contained in:
commit
435e736995
2 changed files with 3 additions and 3 deletions
|
@ -295,7 +295,7 @@ public class Bytestream extends IQ {
|
|||
* @param port port of the stream host.
|
||||
*/
|
||||
public StreamHost(final Jid jid, final String address, int port) {
|
||||
this(jid, InternetAddress.from(address), port);
|
||||
this(jid, InternetAddress.fromIgnoringZoneId(address), port);
|
||||
}
|
||||
|
||||
public StreamHost(Jid jid, InetAddress address, int port) {
|
||||
|
|
|
@ -51,7 +51,7 @@ public final class JingleS5BTransportCandidate extends JingleContentTransportCan
|
|||
private final Type type;
|
||||
|
||||
public JingleS5BTransportCandidate(String candidateId, String hostString, Jid jid, int port, int priority, Type type) {
|
||||
this(candidateId, InternetAddress.from(hostString), jid, port, priority, type);
|
||||
this(candidateId, InternetAddress.fromIgnoringZoneId(hostString), jid, port, priority, type);
|
||||
}
|
||||
|
||||
public JingleS5BTransportCandidate(String candidateId, InternetAddress host, Jid jid, int port, int priority, Type type) {
|
||||
|
@ -176,7 +176,7 @@ public final class JingleS5BTransportCandidate extends JingleContentTransportCan
|
|||
}
|
||||
|
||||
public Builder setHost(String host) {
|
||||
InternetAddress inetAddress = InternetAddress.from(host);
|
||||
InternetAddress inetAddress = InternetAddress.fromIgnoringZoneId(host);
|
||||
return setHost(inetAddress);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue