fix(core): adjustments for IPv6

This commit is contained in:
Nicolas Höft
2022-07-06 08:49:48 -04:00
committed by GitHub
parent 2f9f610210
commit edd64a396e
6 changed files with 127 additions and 11 deletions
+1 -2
View File
@@ -31,8 +31,7 @@
- (void) test_isLocalhost
{
// @"localhost6",
NSString *addrStr[] = { @"127.0.0.1", @"127.1.2.3", @"localhost", @"something.localhost", @"localhost.", nil };
NSString *addrStr[] = { @"127.0.0.1", @"127.1.2.3", @"localhost", @"something.localhost", @"localhost.", @"::1", nil };
NSString **curHost;
BOOL is_localhost;
NSString *error;