Jean ValJean

Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • in reply to: Proxy servers are not used when adding accounts #559814
    Jean ValJean
    Participant

      The fix above works, but when exporting and importing to another WP the accounts the server ip is used and not the proxy ip.

      in reply to: Proxy servers are not used when adding accounts #559812
      Jean ValJean
      Participant

        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’];
        }
        }
        }

        in reply to: Proxy servers are not used when adding accounts #559784
        Jean ValJean
        Participant

          Forgot to attach screenshots – the first one is from pinterest session where you can see that i have logged in from chrome using proxy and the ip adress is from US, the second one is the login from server which is from Germany although i have put the proxy server and the last one was me logiing in again to pinterest to see from what ip SNAP connect.

          file:///home/admin/Desktop/Screenshot_20190202_162056.jpg

          file:///home/admin/Desktop/Screenshot_20190202_162126.jpg

          Need to say that the disconfort is very big on this as all the logins are from the same ip when first adding the accounts, when SNAP posts to the social network proxy is used, it just seems that the method that should be called when getting boards/adding accounts does not use proxies.
          Thanks!

        Viewing 3 posts - 1 through 3 (of 3 total)