mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 03:38:42 -07:00
Vendor jwt, fixes for nkey, jwt changes
Signed-off-by: Derek Collison <derek@nats.io>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user