You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-18 14:21:41 +00:00
Update default proxy port to 8080
This commit is contained in:
@@ -652,6 +652,11 @@ void EditorSettings::_load_defaults(Ref<ConfigFile> p_extra_config) {
|
||||
_initial_set("network/ssl/editor_ssl_certificates", _SYSTEM_CERTS_PATH);
|
||||
hints["network/ssl/editor_ssl_certificates"] = PropertyInfo(Variant::STRING, "network/ssl/editor_ssl_certificates", PROPERTY_HINT_GLOBAL_FILE, "*.crt,*.pem");
|
||||
|
||||
// HTTP Proxy
|
||||
_initial_set("network/http_proxy/host", "");
|
||||
_initial_set("network/http_proxy/port", 8080);
|
||||
hints["network/http_proxy/port"] = PropertyInfo(Variant::INT, "network/http_proxy/port", PROPERTY_HINT_RANGE, "1,65535,1");
|
||||
|
||||
/* Extra config */
|
||||
|
||||
_initial_set("project_manager/sorting_order", 0);
|
||||
|
||||
@@ -150,8 +150,8 @@ void ExportTemplateManager::_download_template(const String &p_url, bool p_skip_
|
||||
download_templates->set_download_file(EditorSettings::get_singleton()->get_cache_dir().plus_file("tmp_templates.tpz"));
|
||||
download_templates->set_use_threads(true);
|
||||
|
||||
const String proxy_host = EDITOR_DEF("network/http_proxy/host", "");
|
||||
const int proxy_port = EDITOR_DEF("network/http_proxy/port", -1);
|
||||
const String proxy_host = EDITOR_GET("network/http_proxy/host");
|
||||
const int proxy_port = EDITOR_GET("network/http_proxy/port");
|
||||
download_templates->set_http_proxy(proxy_host, proxy_port);
|
||||
download_templates->set_https_proxy(proxy_host, proxy_port);
|
||||
|
||||
|
||||
@@ -40,8 +40,8 @@
|
||||
static inline void setup_http_request(HTTPRequest *request) {
|
||||
request->set_use_threads(EDITOR_DEF("asset_library/use_threads", true));
|
||||
|
||||
const String proxy_host = EDITOR_DEF("network/http_proxy/host", "");
|
||||
const int proxy_port = EDITOR_DEF("network/http_proxy/port", -1);
|
||||
const String proxy_host = EDITOR_GET("network/http_proxy/host");
|
||||
const int proxy_port = EDITOR_GET("network/http_proxy/port");
|
||||
request->set_http_proxy(proxy_host, proxy_port);
|
||||
request->set_https_proxy(proxy_host, proxy_port);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user