Skip to content

Commit

Permalink
Fixed wrong value for uses_system_config in some resolvers.
Browse files Browse the repository at this point in the history
  • Loading branch information
nmoinvaz committed Jul 11, 2023
1 parent 2de4115 commit 795551a
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 16 deletions.
2 changes: 1 addition & 1 deletion resolver_mac.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ proxy_resolver_i_s *proxy_resolver_mac_get_interface(void) {
proxy_resolver_mac_create,
proxy_resolver_mac_delete,
false /* get_proxies_for_url should be spooled to another thread */,
true /* get_proxies_for_url does not take into account system config */,
false /* get_proxies_for_url does not take into account system config */,
proxy_resolver_mac_global_init,
proxy_resolver_mac_global_cleanup};
return &proxy_resolver_mac_i;
Expand Down
2 changes: 1 addition & 1 deletion resolver_posix.c
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ proxy_resolver_i_s *proxy_resolver_posix_get_interface(void) {
proxy_resolver_posix_create,
proxy_resolver_posix_delete,
false /* get_proxies_for_url should be spooled to another thread */,
true /* get_proxies_for_url does not take into account system config */,
false /* get_proxies_for_url does not take into account system config */,
proxy_resolver_posix_global_init,
proxy_resolver_posix_global_cleanup};
return &proxy_resolver_posix_i;
Expand Down
2 changes: 1 addition & 1 deletion resolver_win8.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ bool proxy_resolver_win8_get_proxies_for_url(void *ctx, const char *url) {

auto_config_url = proxy_config_get_auto_config_url();
if (auto_config_url) {
// Use auto configuration script specified in system settings
// Use auto configuration script specified by system
auto_config_url_wide = utf8_dup_to_wchar(auto_config_url);
if (!auto_config_url_wide) {
proxy_resolver->error = ERROR_OUTOFMEMORY;
Expand Down
23 changes: 11 additions & 12 deletions resolver_winrt.c
Original file line number Diff line number Diff line change
Expand Up @@ -397,17 +397,16 @@ bool proxy_resolver_winrt_global_cleanup(void) {
}

proxy_resolver_i_s *proxy_resolver_winrt_get_interface(void) {
static proxy_resolver_i_s proxy_resolver_winrt_i = {
proxy_resolver_winrt_get_proxies_for_url,
proxy_resolver_winrt_get_list,
proxy_resolver_winrt_get_error,
proxy_resolver_winrt_wait,
proxy_resolver_winrt_cancel,
proxy_resolver_winrt_create,
proxy_resolver_winrt_delete,
true /* get_proxies_for_url is handled asynchronously */,
true /* get_proxies_for_url takes into account system config */,
proxy_resolver_winrt_global_init,
proxy_resolver_winrt_global_cleanup};
static proxy_resolver_i_s proxy_resolver_winrt_i = {proxy_resolver_winrt_get_proxies_for_url,
proxy_resolver_winrt_get_list,
proxy_resolver_winrt_get_error,
proxy_resolver_winrt_wait,
proxy_resolver_winrt_cancel,
proxy_resolver_winrt_create,
proxy_resolver_winrt_delete,
true /* get_proxies_for_url is handled asynchronously */,
true /* get_proxies_for_url takes into account system config */,
proxy_resolver_winrt_global_init,
proxy_resolver_winrt_global_cleanup};
return &proxy_resolver_winrt_i;
}
2 changes: 1 addition & 1 deletion resolver_winxp.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ bool proxy_resolver_winxp_get_proxies_for_url(void *ctx, const char *url) {

auto_config_url = proxy_config_get_auto_config_url();
if (auto_config_url) {
// Use auto configuration script specified in system settings
// Use auto configuration script specified by system
auto_config_url_wide = utf8_dup_to_wchar(auto_config_url);
if (!auto_config_url_wide) {
proxy_resolver->error = ERROR_OUTOFMEMORY;
Expand Down

0 comments on commit 795551a

Please sign in to comment.