mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
[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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user