Skip to content

Commit

Permalink
Also check for WINHTTP_ACCESS_TYPE_DEFAULT_PROXY
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Aug 8, 2015
1 parent 1125280 commit 2f19149
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/ieproxy.c
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ SEXP R_get_proxy_for_url(SEXP target_url, SEXP auto_detect, SEXP autoproxy_url){
//store output data
char buffer[500];
SEXP vec = PROTECT(allocVector(VECSXP, 3));
SET_VECTOR_ELT(vec, 0, ScalarLogical(ProxyInfo.dwAccessType == WINHTTP_ACCESS_TYPE_NAMED_PROXY));
SET_VECTOR_ELT(vec, 0, ScalarLogical(
ProxyInfo.dwAccessType == WINHTTP_ACCESS_TYPE_NAMED_PROXY ||
ProxyInfo.dwAccessType == WINHTTP_ACCESS_TYPE_DEFAULT_PROXY));

if(ProxyInfo.lpszProxy != NULL) {
wcstombs(buffer, ProxyInfo.lpszProxy, 500);
Expand Down

0 comments on commit 2f19149

Please sign in to comment.