[client] lgmp: dont validate the device if the transport is not selected

This commit is contained in:
Geoffrey McRae
2026-07-30 15:13:50 +10:00
parent 4f02eda913
commit 9657ac7aa2

View File

@@ -67,6 +67,10 @@ struct LG_Transport
static bool lgmp_deviceValidator(struct Option * opt, const char ** error) static bool lgmp_deviceValidator(struct Option * opt, const char ** error)
{ {
const char * transport = option_get_string("app", "transport");
if (!transport || strcmp(transport, "lgmp") != 0)
return true;
if (strlen(opt->value.x_string) > 3 && if (strlen(opt->value.x_string) > 3 &&
memcmp(opt->value.x_string, "kvmfr", 5) != 0) memcmp(opt->value.x_string, "kvmfr", 5) != 0)
{ {