› Forums › NextScripts API Forums – Google+, Pinterest, LinkedIn, etc.. › Proxy servers are not used when adding accounts › Reply To: Proxy servers are not used when adding accounts
Hello,
I have fixed this out on my own, i will give the code here, i am not responsible if something else will be broken so do not use it in production:
In file: wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/pn.php line ~145 method getListOfPNBoards does not set proxy.
You can add it after $nt = new nxsAPI_PN();
###juni
if (isset($networks[‘pn’][ $ii ]) && !empty($networks[‘pn’][ $ii ])) {
$accountOptions = $networks[‘pn’][ $ii ];
if ( ! empty( $accountOptions[‘proxy’] ) && ! empty( $accountOptions[‘proxyOn’] ) ) {
$nt->proxy[‘proxy’] = $accountOptions[‘proxy’][‘proxy’];
if ( ! empty( $accountOptions[‘proxy’][‘up’] ) ) {
$nt->proxy[‘up’] = $accountOptions[‘proxy’][‘up’];
}
}
}