Add nocproxy=1 for contentConnector sessions MP-501
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 2 Dec 2013 14:03:42 +0000 (15:03 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 2 Dec 2013 14:03:42 +0000 (15:03 +0100)
src/filter_zoom.cpp

index 2d65d7d..2a93af5 100644 (file)
@@ -1472,6 +1472,9 @@ yf::Zoom::BackendPtr yf::Zoom::Frontend::get_backend_from_databases(
             out_names[no_out_args] = "subdatabase";
             out_values[no_out_args++] = odr_strdup(odr, sptr->cfSubDB.c_str());
         }
+        if (!param_nocproxy && b->sptr->contentConnector.length())
+            param_nocproxy = "1";
+
         if (param_nocproxy)
         {
             out_names[no_out_args] = "nocproxy";