Skip to content

Commit

Permalink
Fixed a regression of Hostname #2372
Browse files Browse the repository at this point in the history
  • Loading branch information
SoftFever committed Oct 14, 2023
1 parent a3200ad commit 53c416b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libslic3r/AppConfig.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ void AppConfig::set_defaults()
// #endif

if (get("allow_ip_resolve").empty())
set("allow_ip_resolve", "1");
set_bool("allow_ip_resolve", true);

if (get("presets", "filament_colors").empty()) {
set_str("presets", "filament_colors", "#F2754E");
Expand Down
2 changes: 1 addition & 1 deletion src/libslic3r/AppConfig.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ class AppConfig
std::string get(const std::string &key) const
{ std::string value; this->get("app", key, value); return value; }
bool get_bool(const std::string &key) const
{ return this->get(key) == "true"; }
{ return this->get(key) == "true" || this->get(key) == "1"; }
void set(const std::string &section, const std::string &key, const std::string &value)
{
#ifndef NDEBUG
Expand Down

0 comments on commit 53c416b

Please sign in to comment.