When we collect the domain names of the various links and other sources in one ordered set, make sure to use proper DNS
name comparison to filter out duplicates.
#include "bus-util.h"
#include "conf-parser.h"
#include "def.h"
+#include "dns-domain.h"
#include "fd-util.h"
#include "fileio.h"
#include "libudev-private.h"
if (!ntp)
return -ENOMEM;
- search_domains = ordered_set_new(&string_hash_ops);
+ search_domains = ordered_set_new(&dns_name_hash_ops);
if (!search_domains)
return -ENOMEM;
- route_domains = ordered_set_new(&string_hash_ops);
+ route_domains = ordered_set_new(&dns_name_hash_ops);
if (!route_domains)
return -ENOMEM;