]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/main.c
add new function avahi_domain_ends_with()
[catta] / avahi-daemon / main.c
index 6c681fecc63335ab99ea24ff3974da24e7b41877..7f5d1484182a6f0d53b18e40622e85d58abb20bd 100644 (file)
@@ -220,7 +220,7 @@ static void server_callback(AvahiServer *s, AvahiServerState state, void *userda
 #endif
 
     if (state == AVAHI_SERVER_RUNNING) {
-        avahi_log_info("Server startup complete.  Host name is <%s>", avahi_server_get_host_name_fqdn(s));
+        avahi_log_info("Server startup complete. Host name is %s. Local service cookie is %u.", avahi_server_get_host_name_fqdn(s), avahi_server_get_local_service_cookie(s));
         static_service_add_to_server();
 
         remove_dns_server_entry_groups();
@@ -392,9 +392,10 @@ static int load_config_file(DaemonConfig *c) {
                     } else {
                         c->enable_dbus = 0;
                     }
-                }
-                else if (strcasecmp(p->key, "drop-root") == 0)
+                } else if (strcasecmp(p->key, "drop-root") == 0)
                     c->drop_root = is_yes(p->value);
+                else if (strcasecmp(p->key, "add-service-cookie") == 0)
+                    c->server_config.add_service_cookie = is_yes(p->value);
                 else {
                     avahi_log_error("Invalid configuration key \"%s\" in group \"%s\"\n", p->key, g->name);
                     goto finish;
@@ -606,8 +607,8 @@ static int run_server(DaemonConfig *c) {
             c->enable_dbus = 0;
         }
 #else
-        avahi_log_warn("WARNING: We are configured to enable D-BUS but it was not compiled in");
-        c->enabled_dbus = 0;
+        avahi_log_warn("WARNING: We are configured to enable D-BUS but it was not compiled in.");
+        c->enable_dbus = 0;
 #endif
     }