149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
|
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
|
-
-
+
+
+
+
+
|
}
- (void)sendQueries
{
OFString *domainName;
if (!_isFQDN) {
OFString *searchDomain = [_settings->_searchDomains
objectAtIndex: _searchDomainIndex];
OFString *searchDomain = @"";
if (_searchDomainIndex < _settings->_searchDomains.count)
searchDomain = [_settings->_searchDomains
objectAtIndex: _searchDomainIndex];
domainName = [OFString stringWithFormat: @"%@.%@",
_host, searchDomain];
} else
domainName = _host;
#ifdef OF_HAVE_IPV6
|
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
|
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
|
-
+
+
|
addresses, exception);
objc_autoreleasePoolPop(pool);
return;
} @catch (OFInvalidFormatException *e) {
}
if ((aliases = [_settings->_staticHosts objectForKey: _host]) != nil) {
if ((aliases = [_settings->_staticHosts objectForKey:
_host.lowercaseString]) != nil) {
OFMutableData *addresses = [OFMutableData
dataWithItemSize: sizeof(OFSocketAddress)];
id exception = nil;
for (OFString *alias in aliases) {
OFSocketAddress address;
|