ObjFW  Diff

Differences From Artifact [4343bc563f]:

To Artifact [2544d0730b]:


435
436
437
438
439
440
441
442

443
444

445
446
447
448
449
450
451
452
435
436
437
438
439
440
441

442


443

444
445
446
447
448
449
450







-
+
-
-
+
-







	addrIn6->sin6_family = AF_UNSPEC;
#endif
	addrIn6->sin6_port = OF_BSWAP16_IF_LE(port);

	doubleColon = [IPv6 rangeOfString: @"::"].location;

	if (doubleColon != OF_NOT_FOUND) {
		OFString *left = [IPv6 substringWithRange:
		OFString *left = [IPv6 substringToIndex: doubleColon];
		    of_range(0, doubleColon)];
		OFString *right = [IPv6 substringWithRange:
		OFString *right = [IPv6 substringFromIndex: doubleColon + 2];
		    of_range(doubleColon + 2, IPv6.length - doubleColon - 2)];
		OFArray OF_GENERIC(OFString *) *leftComponents;
		OFArray OF_GENERIC(OFString *) *rightComponents;
		size_t i;

		if ([right hasPrefix: @":"] || [right containsString: @"::"])
			@throw [OFInvalidFormatException exception];