Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/gov/nist/javax/sip/address/AddressFactoryImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ public javax.sip.address.SipURI createSipURI(String user, String host) throws Pa
uriString.append("@");
}

//if host is an IPv6 string we should enclose it in sq brackets
//if host is an IPv6 string we should enclose it in sq brackets and remove the scope identifier
if (host.indexOf(':') != host.lastIndexOf(':')
&& host.trim().charAt(0) != '[')
host = '[' + host + ']';
host = '[' + host.split("%")[0] + ']';

uriString.append(host);

Expand Down