Deprecate tty config keyword but keep it around for now

This commit is contained in:
Martin Lund 2022-10-19 23:56:31 +02:00
parent 2cba4b863f
commit 784201ea2e

View file

@ -112,7 +112,7 @@ static int data_handler(void *user, const char *section, const char *name,
if (!strcmp(section, c.section_name))
{
// Set configuration parameter if found
if (!strcmp(name, "device"))
if (!strcmp(name, "device") || !strcmp(name, "tty"))
{
asprintf(&c.tty, value, c.match);
option.tty_device = c.tty;