https://bugs.winehq.org/show_bug.cgi?id=54818
--- Comment #4 from François Gouget fgouget@codeweavers.com --- Created attachment 74322 --> https://bugs.winehq.org/attachment.cgi?id=74322 wininet/tests: Add more proxy tests and traces.
So with the wpad DNS entry in place, a wpad.dat file on the web server and the attached patch Windows 10 gives me:
internet.c:181: DHCP: res=0 gle 12180 proxy= internet.c:189: DNS: res=1 gle 0 proxy=http://ns.vmbr/wpad.dat internet.c:197: proxy: retval=0 len=12 internet.c:203: proxy: retval=1 len=12 internet.c:204: proxy=(null) bypass=(null) internet.c:1681: Internet Connection: Flags 0x12 - Name 'LAN Connection' [...]
Which means: * Windows does detect my wpad configuration. * Only with the IPROXY_AUTO_DETECT_TYPE_DNS_A option, which I guess makes sense since I did not do anything on the DHCP side. * InternetQueryOptionA(NULL, INTERNET_OPTION_PROXY) still claims there is no proxying by default. Not sure why. * InternetQueryOptionW() + INTERNET_PER_CONN_FLAGS still does not add DIRECT+AUTO_PROXY_URL, which I guess is consistent with the previous result.