diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-10-03 14:43:38 +0100 |
---|---|---|
committer | Neil Alexander <neilalexander@users.noreply.github.com> | 2022-10-03 14:43:38 +0100 |
commit | ba66b5a3b9844f4cb3b3f8f2c814894ebb415695 (patch) | |
tree | ebf734e6c9605b0d5e75909714c85993319f190f /build | |
parent | 34451d21b8b069e233700dfe4f000f45984be6ea (diff) |
Allow multiple static peers in Pinecone iOS/Android demos
Diffstat (limited to 'build')
-rw-r--r-- | build/gobind-pinecone/monolith.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/build/gobind-pinecone/monolith.go b/build/gobind-pinecone/monolith.go index 5e9ff8ef..4a96e4be 100644 --- a/build/gobind-pinecone/monolith.go +++ b/build/gobind-pinecone/monolith.go @@ -126,7 +126,9 @@ func (m *DendriteMonolith) SetMulticastEnabled(enabled bool) { func (m *DendriteMonolith) SetStaticPeer(uri string) { m.PineconeManager.RemovePeers() - m.PineconeManager.AddPeer(strings.TrimSpace(uri)) + for _, uri := range strings.Split(uri, ",") { + m.PineconeManager.AddPeer(strings.TrimSpace(uri)) + } } func (m *DendriteMonolith) DisconnectType(peertype int) { |