- if (cache_host_is_known(host)) {
- fprintf(stderr, "the host %s already exists. stopping announce service\n", host);
+ if (cache_host_is_known(mdns_hostname_local)) {
+ fprintf(stderr, "the host %s already exists. stopping announce service\n", mdns_hostname_local);