Leafnode account based connections limits

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2019-04-25 14:40:59 -07:00
parent f5e574ce33
commit 2ec3eaeaa9
8 changed files with 401 additions and 50 deletions

View File

@@ -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)