From ccae11c51822c2d2fd0a83012346c4c16ef86529 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 10 Sep 2005 00:52:33 +0000 Subject: [PATCH] add new configuration file option "add-service-cookie" git-svn-id: file:///home/lennart/svn/public/avahi/trunk@556 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe --- avahi-daemon/avahi-daemon.conf | 1 + avahi-daemon/main.c | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/avahi-daemon/avahi-daemon.conf b/avahi-daemon/avahi-daemon.conf index 284a7fa..6d88214 100644 --- a/avahi-daemon/avahi-daemon.conf +++ b/avahi-daemon/avahi-daemon.conf @@ -6,6 +6,7 @@ use-ipv6=no check-response-ttl=no use-iff-running=no enable-dbus=yes +add-service-cookie=yes [publish] publish-addresses=yes diff --git a/avahi-daemon/main.c b/avahi-daemon/main.c index dab65f7..7f5d148 100644 --- a/avahi-daemon/main.c +++ b/avahi-daemon/main.c @@ -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; -- 2.39.5