KDE and proxy configuration script

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello,

Is there any way to trace how KDE sets proxy from the PAC 
configuration file? For me it seems not working...

Here is a sample file proxy_config.pac:

function FindProxyForURL(url, host)
{
  if (shExpMatch(url, "https:*")) return "DIRECT";
  if (isInNet(host, "127.0.0.0", "255.0.0.0")) return "DIRECT";
  if ( shExpMatch(host, "localhost") ) return "DIRECT";
  if ( shExpMatch(host, "localhost.*") ) return "DIRECT";
  if ( shExpMatch(host, "127.0.0.*") ) return "DIRECT";
  if ( isPlainHostName(host) ) return "DIRECT";

  var resolved_ip = dnsResolve(host);
  
  if (isInNet(myIpAddress(),"xxx.xxx.0.0", "255.255.0.0")) {
      if (isInNet(resolved_ip, "xxx.xxx.0.0", "255.255.0.0"))
        return "DIRECT";
      if (dnsDomainIs(host, ".xxx.xx"))
        return "DIRECT";
      return "PROXY xxx.xxx.xxx.xxx:3128";
  }
  return "DIRECT";
}

The KDE is set to "Use proxy configuration URL" 
file:///home/XXXXX/proxy_config.pac

When at home and I have direct connection to Internet, everything 
works. However, when at work and my IP address is within specified 
xxx.xxx.0.0 network, I can not see any web page. It seems like KDE is 
still set to direct connection but these are blocked by a firewall, 
only proxy connections are allowed. KDE (konqueror and plasma applets) 
does not even try to connect to proxy server.

Does anybody have the same problem?

Any help would be appreciated.

By the way, testing PAC file with pactester shows no error, so it 
seems OK but KDE does something wrong...

System: Fedora 12, KDE 4.4.5.

Thank you.

Serguei.
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux