OctoPrint upload: ignore certificate revocation checks

Fixes Hostname incorrect While test is positive (Bonjour discovery not
supported for the address field) #1781
(partial fix of #1781)
This commit is contained in:
Vojtech Bubnik 2021-08-24 11:24:48 +02:00
parent 0b654e1518
commit 6b03b66167
7 changed files with 35 additions and 3 deletions

View file

@ -1442,7 +1442,8 @@ const std::vector<std::string>& PhysicalPrinter::printer_options()
"printhost_authorization_type",
// HTTP digest authentization (RFC 2617)
"printhost_user",
"printhost_password"
"printhost_password",
"printhost_ignore_check"
};
}
return s_opts;

View file

@ -310,6 +310,12 @@ void PrintConfigDef::init_common_params()
// def->tooltip = L("");
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionString(""));
def = this->add("printhost_ignore_check", coBool);
def->label = L("Ignore certificate revocation checks");
// def->tooltip = L("");
def->mode = comAdvanced;
def->set_default_value(new ConfigOptionBool(false));
def = this->add("preset_names", coStrings);
def->label = L("Printer preset names");