diff options
author | Lennart Poettering <lennart@poettering.net> | 2005-09-10 00:52:33 +0000 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2005-09-10 00:52:33 +0000 |
commit | ccae11c51822c2d2fd0a83012346c4c16ef86529 (patch) | |
tree | 0c403a37ec3c009068376107d099060560be6662 | |
parent | e8edcf439d2ce1593af11c357893681b6b3c0bb4 (diff) |
add new configuration file option "add-service-cookie"
git-svn-id: file:///home/lennart/svn/public/avahi/trunk@556 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe
-rw-r--r-- | avahi-daemon/avahi-daemon.conf | 1 | ||||
-rw-r--r-- | 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; |