It's a bit ambiguous which is correct, so allow both. The name is used for
mail_storage_service as "service", but it ends up going to auth as
"protocol".
{
const char *value;
- if (str_begins(arg, "service=", &value))
+ if (str_begins(arg, "service=", &value) ||
+ str_begins(arg, "protocol=", &value))
info->protocol = value;
else if (str_begins(arg, "lip=", &value)) {
if (net_addr2ip(value, &info->local_ip) < 0)
{
const char *key, *value;
- if (str_begins(arg, "service=", &value))
+ if (str_begins(arg, "service=", &value) ||
+ str_begins(arg, "protocol=", &value))
info->protocol = value;
else if (str_begins(arg, "session=", &value))
info->session_id = value;