mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Close leafnode connection when same cluster name detected
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -2526,6 +2526,7 @@ func TestClientClampMaxSubsErrReport(t *testing.T) {
|
||||
s1.SetLogger(l, false, false)
|
||||
|
||||
o2 := DefaultOptions()
|
||||
o2.Cluster.Name = "xyz"
|
||||
u, _ := url.Parse(fmt.Sprintf("nats://127.0.0.1:%d", o1.LeafNode.Port))
|
||||
o2.LeafNode.Remotes = []*RemoteLeafOpts{{URLs: []*url.URL{u}}}
|
||||
s2 := RunServer(o2)
|
||||
|
||||
Reference in New Issue
Block a user