Honor pz:apdulog again (for ZOOM as well).
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Jul 2008 17:29:20 +0000 (19:29 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 21 Jul 2008 17:29:20 +0000 (19:29 +0200)
src/connection.c

index 155619f..197dbcb 100644 (file)
@@ -355,6 +355,7 @@ int connection_connect(struct connection *con)
 
     struct session_database *sdb = client_get_database(con->client);
     const char *zproxy = session_setting_oneval(sdb, PZ_ZPROXY);
+    const char *apdulog = session_setting_oneval(sdb, PZ_APDULOG);
 
     assert(host->ipport);
     assert(con);
@@ -364,12 +365,13 @@ int connection_connect(struct connection *con)
             global_parameters.implementationName);
     ZOOM_options_set(zoptions, "implementationVersion",
             global_parameters.implementationVersion);
-
     if (zproxy && *zproxy)
     {
         con->zproxy = xstrdup(zproxy);
         ZOOM_options_set(zoptions, "proxy", zproxy);
     }
+    if (apdulog && *apdulog)
+        ZOOM_options_set(zoptions, "apdulog", apdulog);
 
     if ((auth = (char*) session_setting_oneval(sdb, PZ_AUTHENTICATION)))
         ZOOM_options_set(zoptions, "user", auth);