cicku / libproxy

Automatically exported from code.google.com/p/libproxy
GNU Lesser General Public License v2.1
1 stars 0 forks source link

libProxy is returning direct:// for WPAD using DNS #190

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago

1. created a set up for WPAD that can detect and download the PAC file from 
remote server using DNS method on open suse

2. set the environment variable PX_CONFIG_ORDER=config_wpad

3.using the code 
http://code.google.com/p/libproxy/wiki/HowTo. created sample program

its expected to return proxy from PAC  , but i'm getting return value as  
direct://

i'm using .so of version 0.4.7 On open suse operating system

While enable the debug,i'm getting follwing logs:

Using config: NULL
Using ignore: 
Config is: direct://

What settings i'm missing ? why I'm getting return values as direct:// 
irrespective of url ?

Original issue reported on code.google.com by uraveen...@gmail.com on 25 Mar 2013 at 6:31

GoogleCodeExporter commented 8 years ago
Using config: NULL
=> That sounds like no configuration module can be loaded AT ALL

Using ignore: 
Config is: direct://
=> Hence, direct is the only solution.

please try with
_MM_DEBUG=1 _PX_DEBUG=1 proxy http://www.google.com
(proxy test program comes from libproxy-tools subpackage on openSUSE)

Original comment by dominiqu...@gmail.com on 30 Mar 2013 at 4:59

GoogleCodeExporter commented 8 years ago
I understand the problem but i want WPAD module to get preference over ignore 
or i need to set WPAD in ignore patterns.

Original comment by uraveen...@gmail.com on 1 Apr 2013 at 4:32

GoogleCodeExporter commented 8 years ago
No, you don't understand the problem. There are *no* modules loaded at all. It 
isn't a preference thing. Until you have modules loading, we can't help you.

Original comment by nathan...@themccallums.org on 1 Apr 2013 at 3:59

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
I've written this attached code to get the proxy using WPAD via DNS method. 
I've checked the binaries of libproxy modules, i haven't found any 
config_wpad.so or wpad_dns.so in the system. is the problem happens because of 
this ?

Original comment by uraveen...@gmail.com on 2 Apr 2013 at 11:24

Attachments:

GoogleCodeExporter commented 8 years ago
Yes, missing modules is your problem.

Original comment by nathan...@themccallums.org on 2 Apr 2013 at 7:18

GoogleCodeExporter commented 8 years ago
if i able to have wpad_dns.so in module folder , am i able to run the above 
attached codes to get proxy ? or is any environment variable need to set ?

Original comment by uraveen...@gmail.com on 3 Apr 2013 at 4:15