mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-21 19:42:05 +01:00
[socks5] Ignore zone IDs of internet addresses
Fixes SMACK-940.
This commit is contained in:
parent
8b9a9e0f3e
commit
a39e5baa74
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