ObjXMPP  Check-in [985f2f71af]

Overview
Comment:Fix fallback to A/AAAA in case of missing SRV
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | trunk
Files: files | file ages | folders
SHA3-256: 985f2f71affd881580559b6cd7ec2da3f8abff51a09cff163f87e7bf5bca8ef0
User & Date: js on 2020-01-04 00:59:21
Other Links: manifest | tags
Context
2020-01-04
00:59
Fix fallback to A/AAAA in case of missing SRV Leaf check-in: 985f2f71af user: js tags: trunk
2020-01-03
23:45
Adjust to ObjFW changes check-in: 3326ea5a0a user: js tags: trunk
Changes

Modified src/XMPPConnection.m from [deaa6bbc95] to [7485f3a9a3].

298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
-  (void)resolver: (OFDNSResolver *)resolver
  didPerformQuery: (OFString *)domainName
	 response: (OFDNSResponse *)response
	exception: (id)exception
{
	OFMutableArray *records = [OFMutableArray array];

	if (exception != nil) {
		[_delegates
		    broadcastSelector: @selector(connection:didThrowException:)
			   withObject: self
			   withObject: exception];
		return;
	}

	for (OFDNSResourceRecord *record in
	    [response.answerRecords objectForKey: domainName])
		if ([record isKindOfClass: [OFSRVDNSResourceRecord class]])
		       [records addObject: record];

	/* TODO: Sort records */







|
|
<
<
<
<
<







298
299
300
301
302
303
304
305
306





307
308
309
310
311
312
313
-  (void)resolver: (OFDNSResolver *)resolver
  didPerformQuery: (OFString *)domainName
	 response: (OFDNSResponse *)response
	exception: (id)exception
{
	OFMutableArray *records = [OFMutableArray array];

	if (exception != nil)
		response = nil;






	for (OFDNSResourceRecord *record in
	    [response.answerRecords objectForKey: domainName])
		if ([record isKindOfClass: [OFSRVDNSResourceRecord class]])
		       [records addObject: record];

	/* TODO: Sort records */