Vendor jwt, fixes for nkey, jwt changes

Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
Derek Collison
2018-11-21 19:22:04 -08:00
parent 0ee714ce28
commit a2e310ffc1
33 changed files with 2060 additions and 104 deletions

View File

@@ -109,8 +109,10 @@ func (c *client) parse(buf []byte) error {
var b byte
mcl := MAX_CONTROL_LINE_SIZE
if c.srv != nil && c.srv.getOpts() != nil {
mcl = c.srv.getOpts().MaxControlLine
if c.srv != nil {
if opts := c.srv.getOpts(); opts != nil {
mcl = opts.MaxControlLine
}
}
// Snapshot this, and reset when we receive a