diff options
author | Tais P. Hansen <taishansen@gmail.com> | 2022-03-20 13:56:11 +0100 |
---|---|---|
committer | Tais P. Hansen <taishansen@gmail.com> | 2022-03-20 17:17:11 +0100 |
commit | 394f04a2b429dfeeefaff97bfb5b59df70a58005 (patch) | |
tree | 7f7b57e34698538479861e7d642d79ee62f08d70 /core/io | |
parent | 5901d9145822bd068078441f4e96377d49018ed9 (diff) |
Fix getaddrinfo failed with undefined proxy config
HTTPClientTCP expects proxy host to be empty or port to be -1 to ignore
the proxy. When getting the proxy config from the settings file, the
values will default to U"null" and 0, respectively, making HTTPClientTCP
to attempt to use the values as a proxy, which causes getaddrinfo to
fail looking up a "null" hostname.
Setting the default config values seems like a good approach to prevent
this issue.
Fixes #59037
Diffstat (limited to 'core/io')
0 files changed, 0 insertions, 0 deletions