ObjFW  Diff

Differences From Artifact [54daba6e99]:

To Artifact [07800749f7]:


69
70
71
72
73
74
75









76

77
78
79
80
81
82
83
{
	self = [super init];

	@try {
		_minNumberOfDotsInAbsoluteName = 1;

#ifdef OF_HAVE_FILES









		[self of_parseHosts: @"/etc/hosts"];

		[self of_parseResolvConf: @"/etc/resolv.conf"];
		[self of_parseResolvConf: @"/etc/resolv.conf.tail"];
#endif

		if (_staticHosts == nil)
			_staticHosts = [[OFDictionary alloc] init];








>
>
>
>
>
>
>
>
>

>







69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
	self = [super init];

	@try {
		_minNumberOfDotsInAbsoluteName = 1;

#ifdef OF_HAVE_FILES
# if defined(OF_HAIKU)
		[self of_parseHosts: @"/boot/common/settings/network/hosts"];
# elif defined(OF_MORPHOS)
		[self of_parseHosts: @"ENVARC:sys/net/hosts"];
# elif defined(OF_AMIGAOS4)
		[self of_parseHosts: @"DEVS:Internet/hosts"];
# elif defined(OF_AMIGAOS)
		[self of_parseHosts: @"AmiTCP:db/hosts"];
# else
		[self of_parseHosts: @"/etc/hosts"];
# endif
		[self of_parseResolvConf: @"/etc/resolv.conf"];
		[self of_parseResolvConf: @"/etc/resolv.conf.tail"];
#endif

		if (_staticHosts == nil)
			_staticHosts = [[OFDictionary alloc] init];