ENH:Support for binding farm mode printers

jira:[for farm mode]

Change-Id: Icb2eb3f8435bcc1cabcb343ba040ce426eb50581
This commit is contained in:
tao wang 2024-06-24 21:13:14 +08:00 committed by Lane.Wei
parent ea7f000df9
commit f6a230869b
1 changed files with 6 additions and 0 deletions

View File

@ -5240,6 +5240,12 @@ void DeviceManager::on_machine_alive(std::string json_str)
std::string printer_signal = j["dev_signal"].get<std::string>();
std::string connect_type = j["connect_type"].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 ssdp_version = "";
if (j.contains("sec_link")) {