ObjFW  Check-in [9c10d30eb6]

Overview
Comment:OFHostAddressResolver: Handle no search domains
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 9c10d30eb6e294471c7559dd2fbd30bcb5a9f039049009a25ece7a5d10c1dd52
User & Date: js on 2023-01-13 01:23:11
Other Links: manifest | tags
Context
2023-01-13
01:28
OFDNSResolverSettings: Reject empty NS on Windows check-in: c4f99bd429 user: js tags: trunk
01:23
OFHostAddressResolver: Handle no search domains check-in: 9c10d30eb6 user: js tags: trunk
2023-01-12
23:56
exceptions: Nicer format for IPX nodes check-in: 5c172869c8 user: js tags: trunk
Changes

Modified src/OFHostAddressResolver.m from [c2c48c66d1] to [3e742a19ee].

149
150
151
152
153
154
155
156




157
158
159
160
161
162
163
149
150
151
152
153
154
155

156
157
158
159
160
161
162
163
164
165
166







-
+
+
+
+







}

- (void)sendQueries
{
	OFString *domainName;

	if (!_isFQDN) {
		OFString *searchDomain = [_settings->_searchDomains
		OFString *searchDomain = @"";

		if (_searchDomainIndex < _settings->_searchDomains.count)
			searchDomain = [_settings->_searchDomains
		    objectAtIndex: _searchDomainIndex];

		domainName = [OFString stringWithFormat: @"%@.%@",
							 _host, searchDomain];
	} else
		domainName = _host;