mirror of
https://github.com/openjdk/jdk.git
synced 2026-02-22 16:26:05 +00:00
8296581: Better system proxy support
Reviewed-by: rhalade, dfuchs, michaelm, alanb
This commit is contained in:
parent
83b6a1278f
commit
072d64c6a9
@ -239,7 +239,7 @@ Java_sun_net_spi_DefaultProxySelector_getSystemProxies(JNIEnv *env,
|
||||
if (use_auto_proxy) {
|
||||
WCHAR url[MAX_STR_LEN];
|
||||
/* Create url for WinHttpGetProxyForUrl */
|
||||
_snwprintf(url, sizeof(url) - 1, L"%s://%s", lpProto, lpHost);
|
||||
swprintf(url, MAX_STR_LEN, L"%s://%s", lpProto, lpHost);
|
||||
/* Get proxy for URL from Windows */
|
||||
use_auto_proxy = WinHttpGetProxyForUrl(session, &url[0], &auto_proxy_options, &proxy_info);
|
||||
if (use_auto_proxy) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user