Changeset 79840 in vbox for trunk/src/VBox/Runtime
- Timestamp:
- Jul 17, 2019 4:09:05 PM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 132227
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/http-curl.cpp
r79835 r79840 171 171 /** Set if we've detected no proxy necessary. */ 172 172 bool fNoProxy; 173 /** Set if we've reset proxy info in cURL and need to reapply it. */ 174 bool fReapplyProxyInfo; 173 175 /** Proxy host name (RTStrFree). */ 174 176 char *pszProxyHost; … … 433 435 pThis->rcOutput = VINF_SUCCESS; 434 436 437 /* Tell the proxy configuration code to reapply settings even if they 438 didn't change as cURL has forgotten them: */ 439 pThis->fReapplyProxyInfo = true; 440 435 441 return VINF_SUCCESS; 436 442 } … … 586 592 #endif 587 593 588 if (enmProxyType != pThis->enmProxyType) 594 if ( pThis->fReapplyProxyInfo 595 || enmProxyType != pThis->enmProxyType) 589 596 { 590 597 rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_PROXYTYPE, (long)enmProxyType); … … 594 601 } 595 602 596 if (uPort != pThis->uProxyPort) 603 if ( pThis->fReapplyProxyInfo 604 || uPort != pThis->uProxyPort) 597 605 { 598 606 rcCurl = curl_easy_setopt(pThis->pCurl, CURLOPT_PROXYPORT, (long)uPort); … … 602 610 } 603 611 604 if ( pszUsername != pThis->pszProxyUsername 612 if ( pThis->fReapplyProxyInfo 613 || pszUsername != pThis->pszProxyUsername 605 614 || RTStrCmp(pszUsername, pThis->pszProxyUsername)) 606 615 { … … 620 629 } 621 630 622 if ( pszPassword != pThis->pszProxyPassword 631 if ( pThis->fReapplyProxyInfo 632 || pszPassword != pThis->pszProxyPassword 623 633 || RTStrCmp(pszPassword, pThis->pszProxyPassword)) 624 634 { … … 639 649 } 640 650 641 if ( pszHost != pThis->pszProxyHost 651 if ( pThis->fReapplyProxyInfo 652 || pszHost != pThis->pszProxyHost 642 653 || RTStrCmp(pszHost, pThis->pszProxyHost)) 643 654 { … … 657 668 } 658 669 670 pThis->fReapplyProxyInfo = false; 659 671 return VINF_SUCCESS; 660 672 }
Note:
See TracChangeset
for help on using the changeset viewer.