1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

kafka: add missing protocol option

This commit is contained in:
Steffen Vogel 2021-05-09 21:42:36 +02:00
parent 34cdb2819e
commit 702f11b777

View file

@ -207,6 +207,7 @@ int kafka_parse(struct vnode *n, json_t *json)
k->consumer.group_id = group_id ? strdup(group_id) : nullptr;
if (strcmp(protocol, "SSL") &&
strcmp(protocol, "PLAINTEXT") &&
strcmp(protocol, "SASL_SSL") &&
strcmp(protocol, "SASL_PLAINTEXT"))
throw ConfigError(json, "node-config-node-kafka-protocol", "Invalid security protocol: {}", protocol);