From f16ea39889c0fd65f3e533cf40cc3a0a33ac1c33 Mon Sep 17 00:00:00 2001 From: Dirk Engling Date: Tue, 3 Nov 2026 06:02:47 +0100 Subject: Let a user pick their cluster's own multicast group --- src/ot_config.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ot_config.c') diff --git a/src/ot_config.c b/src/ot_config.c index 95136b5..4064d1b 100644 --- a/src/ot_config.c +++ b/src/ot_config.c @@ -208,6 +208,7 @@ typedef enum { CONFIG_TRACKER_REDIRECT_URL, CONFIG_LIVESYNC_CLUSTER_NODE_IP, CONFIG_LIVESYNC_CLUSTER_LISTEN, + CONFIG_LIVESYNC_CLUSTER_GROUP, } config_kind; typedef struct { @@ -247,6 +248,7 @@ static const config_key config_keys[] = { #ifdef WANT_SYNC_LIVE CONFIG_KEY("livesync.cluster.node_ip", CONFIG_LIVESYNC_CLUSTER_NODE_IP), CONFIG_KEY("livesync.cluster.listen", CONFIG_LIVESYNC_CLUSTER_LISTEN), + CONFIG_KEY("livesync.cluster.group", CONFIG_LIVESYNC_CLUSTER_GROUP), #endif }; static const size_t config_entry_count = sizeof(config_keys) / sizeof(config_keys[0]); @@ -378,6 +380,10 @@ static int parse_configfile(char *config_filename) { set_config_option(&g_redirecturl, p); break; #ifdef WANT_SYNC_LIVE + case CONFIG_LIVESYNC_CLUSTER_GROUP: + if (!ip_parse(p, tmpip) || livesync_set_group(tmpip) == -1) + goto parse_error; + break; case CONFIG_LIVESYNC_CLUSTER_NODE_IP: if (!scan_ip6_net(p, &tmpnet)) goto parse_error; -- cgit v1.3