mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-16 19:14:41 -07:00
Leafnode account based connections limits
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -728,7 +728,6 @@ type leafConnectInfo struct {
|
||||
func (c *client) processLeafNodeConnect(s *Server, arg []byte, lang string) error {
|
||||
// Way to detect clients that incorrectly connect to the route listen
|
||||
// port. Client provided "lang" in the CONNECT protocol while LEAFNODEs don't.
|
||||
|
||||
if lang != "" {
|
||||
c.sendErrAndErr(ErrClientConnectedToLeafNodePort.Error())
|
||||
c.closeConnection(WrongPort)
|
||||
|
||||
Reference in New Issue
Block a user