LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 11-17-2014, 06:52 PM   #1
aihaike
Member
 
Registered: Feb 2006
Location: Paris, France
Distribution: Slackware, CentOS
Posts: 270

Rep: Reputation: 20
Question Firefox 33.1 and .autoproxy.pac


Dear all,

I used to have a autoproxy configuration working with firefox but since few weeks now nothing work anymore.
The proxy server works, I use it with an other application.
I'm wondering if someone encountered such issue and if my .autoproxy.pac file is still correct.
It looks like this:
Code:
function FindProxyForURL(url, host) {
  host = host.toLowerCase();
  if (dnsDomainIs(host, "twitter.com") ||
      dnsDomainIs(host, "youtube.com" )
      return "PROXY xxx.yyy.zzz.www:8080";            // (IP:port)

  return "DIRECT";
}
Thank you.
 
Old 11-17-2014, 08:45 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,041

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
I'd make a wild guess that the bracket should be on return statement and not on "if" part.

Example

if (shExpMatch(host, "localhost") || shExpMatch(host, "127.0.0.*") ) { return "DIRECT" ; }
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PAC Manager 4.4.1 anonymous_itop Linux - Software 1 11-06-2012 01:10 PM
Autoproxy configuration for Windows platforms pradeepontheline Linux - Networking 2 05-30-2011 03:07 PM
PAC 207 Webcam moshebagelfresser Linux - Hardware 7 02-13-2009 07:23 AM
proxy.pac andrewfeberwee Linux - General 4 07-07-2008 05:43 AM
PAC-Man dudeman41465 Linux - Software 1 10-02-2005 05:14 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:16 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration