diff --git a/config/vufind/config.ini b/config/vufind/config.ini index aa43cf3583482a5b6fee81fb24236d1cda365276..478a39fa00cc3588af1554892c18367bd05c4d14 100644 --- a/config/vufind/config.ini +++ b/config/vufind/config.ini @@ -835,6 +835,9 @@ url = https://www.myendnoteweb.com/EndNoteWeb.html ;host = your.proxy.server ;port = 8000 +; Uncomment following line to set proxy type to SOCKS 5 +;type = socks5 + ; Default HTTP settings can be loaded here. These values will be passed to ; the \Zend\Http\Client's setOptions method. [Http] diff --git a/module/VuFind/src/VuFind/Service/Factory.php b/module/VuFind/src/VuFind/Service/Factory.php index e9e7db3fec2e33906735b2984119248bb0872947..4f20f5105a8bc8595d927d9b0c94042998e6ccf6 100644 --- a/module/VuFind/src/VuFind/Service/Factory.php +++ b/module/VuFind/src/VuFind/Service/Factory.php @@ -353,6 +353,9 @@ class Factory if (isset($config->Proxy->port)) { $options['proxy_port'] = $config->Proxy->port; } + if (isset($config->Proxy->type)) { + $options['proxy_type'] = $config->Proxy->type; + } } $defaults = isset($config->Http) ? $config->Http->toArray() : [];