You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-22 15:06:45 +00:00
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
This commit is contained in:
@@ -716,6 +716,10 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||
// Profiler
|
||||
_initial_set("debugger/profiler_frame_history_size", 600);
|
||||
|
||||
// HTTP Proxy
|
||||
_initial_set("network/http_proxy/host", "");
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_RANGE, "network/http_proxy/port", 8080, "1,65535,1")
|
||||
|
||||
/* Extra config */
|
||||
|
||||
EDITOR_SETTING(Variant::INT, PROPERTY_HINT_ENUM, "project_manager/sorting_order", 0, "Name,Path,Last Edited")
|
||||
|
||||
Reference in New Issue
Block a user