genotrance / px

An HTTP proxy server to automatically authenticate through an NTLM proxy
MIT License
955 stars 99 forks source link

Auto detect settings + Use config script not working together #112

Open julienlavergne opened 4 years ago

julienlavergne commented 4 years ago

Hi,

I came upon a particular configuration where windows internet option has both "Auto detect settings" and "Use config script" checked.

image

It appears px-proxy end up going into AUTO mode (and failing), while unchecking "Auto detect settings" makes px-proxy go into PAC mode (and succeed). I don't know if it is a particular issue with my corporate settings.

I am wondering what is windows behavior in that scenario, should px-proxy first use the PAC settings before trying to auto detect settings ? I am ready to propose a PR change if there is agreement and the correct way to tackle this issue.

genotrance commented 4 years ago

I'm not sure what Windows does in this case but seems like it should be failing once and trying the next option.