1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-10-18 12:15:58 +02:00

[socks5] Ignore zone IDs of internet addresses

Fixes SMACK-940.
This commit is contained in:
Florian Schmaus 2024-02-09 13:17:36 +01:00
parent 8b9a9e0f3e
commit a39e5baa74
2 changed files with 3 additions and 3 deletions

View file

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

View file

@ -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);
}