mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +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
23711d82d3
commit
49fff1859e
1 changed files with 1 additions and 1 deletions
|
@ -544,7 +544,7 @@ static unsigned urlAlign;
|
|||
{
|
||||
/* Add square brackets around ipv6 address if necessary
|
||||
*/
|
||||
if ([aHost rangeOfString: @":"].length > 0
|
||||
if ([[aHost componentsSeparatedByString: @":"] count] > 2
|
||||
&& [aHost hasPrefix: @"["] == NO)
|
||||
{
|
||||
aHost = [NSString stringWithFormat: @"[%@]", aHost];
|
||||
|
|
Loading…
Reference in a new issue