mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-02 09:31:07 +00:00
Tweak test for ipv6 host
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@27289 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
d4529c9a65
commit
361b9fca67
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ static unsigned urlAlign;
|
||||||
{
|
{
|
||||||
/* Add square brackets around ipv6 address if necessary
|
/* Add square brackets around ipv6 address if necessary
|
||||||
*/
|
*/
|
||||||
if ([aHost rangeOfString: @":"].length > 0
|
if ([[aHost componentsSeparatedByString: @":"] count] > 2
|
||||||
&& [aHost hasPrefix: @"["] == NO)
|
&& [aHost hasPrefix: @"["] == NO)
|
||||||
{
|
{
|
||||||
aHost = [NSString stringWithFormat: @"[%@]", aHost];
|
aHost = [NSString stringWithFormat: @"[%@]", aHost];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue