Skip to content

Commit

Permalink
Ignore zone IDs of internet addresses
Browse files Browse the repository at this point in the history
Fixes SMACK-940.
  • Loading branch information
Flowdalic committed Feb 9, 2024
1 parent 8b9a9e0 commit 9ff8bc0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ public StreamHost(Jid jid, String address) {
* @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) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down Expand Up @@ -176,7 +176,7 @@ public Builder setCandidateId(String cid) {
}

public Builder setHost(String host) {
InternetAddress inetAddress = InternetAddress.from(host);
InternetAddress inetAddress = InternetAddress.fromIgnoringZoneId(host);
return setHost(inetAddress);
}

Expand Down

0 comments on commit 9ff8bc0

Please sign in to comment.