https://bugs.winehq.org/show_bug.cgi?id=54818
--- Comment #1 from Hans Leidekker hans@meelstraat.net --- (In reply to François Gouget from comment #0)
This is because, when wpad.my.domain exists, url is set in query_global_option() so it automatically adds the DIRECT + AUTO_PROXY_URL flags:
if (url) /* native includes PROXY_TYPE_DIRECT even if PROXY_TYPE_PROXY is set
*/ optionW->Value.dwValue |= PROXY_TYPE_DIRECT|PROXY_TYPE_AUTO_PROXY_URL;
url comes from get_proxy_autoconfig_url() which in my case gets it from detect_proxy_autoconfig_url_dns(). That's normal given the way my DNS server is configured.
However on the same network Windows 10 does not add these flags and the tests succeed. So Wine is doing something wrong there.
Is that Windows machine configured to be part of my.domain?