[CHANGED] Gateway: Detect duplicate names between clusters

Gateway connection will be closed and error reported if a remote
has a name that is a duplicate of the local cluster.

Signed-off-by: Ivan Kozlovic <ivan@synadia.com>
This commit is contained in:
Ivan Kozlovic
2022-03-15 15:00:13 -06:00
parent 5c0d1999ff
commit 63c750e295
7 changed files with 178 additions and 1 deletions

View File

@@ -2102,6 +2102,8 @@ func (reason ClosedState) String() string {
return "Duplicate Remote LeafNode Connection"
case DuplicateClientID:
return "Duplicate Client ID"
case DuplicateServerName:
return "Duplicate Server Name"
}
return "Unknown State"