]> git.meshlink.io Git - catta/blobdiff - avahi-daemon/main.c
add new configuration file option "add-service-cookie"
[catta] / avahi-daemon / main.c
index dab65f7722ab13233e423e948e5740817663d2f6..7f5d1484182a6f0d53b18e40622e85d58abb20bd 100644 (file)
@@ -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;