···135135 WebsocketURL string
136136 BehindHTTPSProxy bool
137137 SegmentDebugDir string
138138+ Syndicate []string
138139}
139140140141// ContentFilters represents the content filtering configuration
···229230 cli.StringSliceFlag(fs, &cli.Replicators, "replicators", []string{ReplicatorWebsocket}, "list of replication protocols to use (http, iroh)")
230231 fs.StringVar(&cli.WebsocketURL, "websocket-url", "", "override the websocket (ws:// or wss://) url to use for replication (normally not necessary, used for testing)")
231232 fs.BoolVar(&cli.BehindHTTPSProxy, "behind-https-proxy", false, "set to true if this node is behind an https proxy and we should report https URLs even though the node isn't serving HTTPS")
233233+ cli.StringSliceFlag(fs, &cli.Syndicate, "syndicate", []string{}, "list of DIDs that we should rebroadcast ('*' for everybody)")
232234233235 fs.Bool("external-signing", true, "DEPRECATED, does nothing.")
234236 fs.Bool("insecure", false, "DEPRECATED, does nothing.")
···674676 log.Log(ctx, "wrote debug file", "path", outFile)
675677 }()
676678}
679679+680680+func (cli *CLI) ShouldSyndicate(did string) bool {
681681+ for _, d := range cli.Syndicate {
682682+ if d == "*" {
683683+ return true
684684+ }
685685+ if d == did {
686686+ return true
687687+ }
688688+ }
689689+ return false
690690+}