Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

141
Views
Connect to SOCKS5 Proxy Via PAC script

In my chrome extension, I am using the PAC script chrome.proxy API that has worked in the past.

How do I connect to a SOCKS5 proxy using this method? I have been using this code, but I get a socks error.

    var config = {
                mode: "pac_script",
                pacScript: {
                    data: "function     FindProxyForURL(url, host) {\n" +
                        "  if (host == 'mygeoip.co      /*')\n" +
                        "    return 'SOCKS5 blackhole:80';\n" +
                        "  return 'SOCKS5 "+ip+":"+port+"';\n" +
                        "}"
                    }
                };
          
                
                chrome.proxy.settings.set(
                {value: config, scope: 'regular'},
                function() {}
                );
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!