Active
Project:
Facebook Connect
Version:
7.x-2.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Issue tags:
Reporter:
Created:
1 May 2016 at 14:05 UTC
Updated:
1 May 2016 at 14:06 UTC
Jump to comment: Most recent
If Drupal is defined with a proxy, this module ignores it, and all HTTP requests are made directly.
Comments
Comment #2
superspring commentedHere is a basic fix which copies Drupal's proxy setting to this module. An optional extra would be to copy the proxy authentication credentials too:
diff -r current/fbconnect/fbconnect.module fixed/fbconnect/fbconnect.module
413a414,424
>
> // Adds in proxy support for Drupal.
> if (variable_get('proxy_server', '') && variable_get('proxy_port', '')) {
>
> // There is a proxy? Add it into CURL.
> Facebook::$CURL_OPTS[CURLOPT_PROXY] = sprintf(
> '%s:%s',
> variable_get('proxy_server'),
> variable_get('proxy_port')
> );
> }