ENH:Support for binding farm mode printers

jira:[for farm mode]

Change-Id: Icb2eb3f8435bcc1cabcb343ba040ce426eb50581
(cherry picked from commit f6a230869b020bcd149b7e2878cd33a4200c6a06)
This commit is contained in:
tao wang 2024-06-24 21:13:14 +08:00 committed by Noisyfox
parent d802379a9a
commit 66af62a194

View file

@ -5177,6 +5177,12 @@ void DeviceManager::on_machine_alive(std::string json_str)
std::string printer_signal = j["dev_signal"].get<std::string>(); std::string printer_signal = j["dev_signal"].get<std::string>();
std::string connect_type = j["connect_type"].get<std::string>(); std::string connect_type = j["connect_type"].get<std::string>();
std::string bind_state = j["bind_state"].get<std::string>(); std::string bind_state = j["bind_state"].get<std::string>();
if (connect_type == "farm") {
connect_type ="lan";
bind_state = "free";
}
std::string sec_link = ""; std::string sec_link = "";
std::string ssdp_version = ""; std::string ssdp_version = "";
if (j.contains("sec_link")) { if (j.contains("sec_link")) {