Differences From Artifact [5d1e72d5b4]:
- File utils/ofdns/OFDNS.m — part of check-in [6b2fb27dca] at 2019-10-01 00:40:48 on branch trunk — Add OFDNSRequest (user: js, size: 2705) [annotate] [blame] [check-ins using]
To Artifact [84af245824]:
- File
utils/ofdns/OFDNS.m
— part of check-in
[d69f7bc1ff]
at
2019-10-06 16:27:12
on branch trunk
— Rename OFDNSRequest -> OFDNSQuery
This is now in alignment with the terminology of the RFC. (user: js, size: 2691) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
49 50 51 52 53 54 55 | - (void)applicationDidFinishLaunching { OFArray OF_GENERIC(OFString *) *arguments = [OFApplication arguments]; of_dns_resource_record_class_t recordClass = OF_DNS_RESOURCE_RECORD_CLASS_ANY; of_dns_resource_record_type_t recordType = OF_DNS_RESOURCE_RECORD_TYPE_ALL; | | | 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | - (void)applicationDidFinishLaunching { OFArray OF_GENERIC(OFString *) *arguments = [OFApplication arguments]; of_dns_resource_record_class_t recordClass = OF_DNS_RESOURCE_RECORD_CLASS_ANY; of_dns_resource_record_type_t recordType = OF_DNS_RESOURCE_RECORD_TYPE_ALL; OFDNSQuery *query; OFDNSResolver *resolver; #ifdef OF_HAVE_SANDBOX OFSandbox *sandbox = [[OFSandbox alloc] init]; @try { sandbox.allowsStdIO = true; sandbox.allowsDNS = true; |
︙ | ︙ | |||
87 88 89 90 91 92 93 | if (arguments.count >= 4) { resolver.configReloadInterval = 0; resolver.nameServers = [arguments objectsInRange: of_range(3, 1)]; } | | | | | | | 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | if (arguments.count >= 4) { resolver.configReloadInterval = 0; resolver.nameServers = [arguments objectsInRange: of_range(3, 1)]; } query = [OFDNSQuery queryWithHost: [arguments objectAtIndex: 0] recordClass: recordClass recordType: recordType]; [resolver asyncPerformQuery: query delegate: self]; } @end |