mirror of
https://github.com/gogrlx/nats-server.git
synced 2026-04-02 11:48:43 -07:00
@@ -35,7 +35,13 @@ var (
|
||||
|
||||
const (
|
||||
// VERSION is the current version for the server.
|
||||
VERSION = "1.2.0-beta3"
|
||||
VERSION = "1.2.0-beta4"
|
||||
|
||||
// PROTO is the currently supported protocol.
|
||||
// 0 was the original
|
||||
// 1 maintains proto 0, adds echo abilities for CONNECT from the client. Clients
|
||||
// should not send echo unless proto in INFO is >= 1.
|
||||
PROTO = 1
|
||||
|
||||
// DEFAULT_PORT is the default port for client connections.
|
||||
DEFAULT_PORT = 4222
|
||||
|
||||
@@ -41,6 +41,7 @@ import (
|
||||
type Info struct {
|
||||
ID string `json:"server_id"`
|
||||
Version string `json:"version"`
|
||||
Proto int `json:"proto"`
|
||||
GitCommit string `json:"git_commit,omitempty"`
|
||||
GoVersion string `json:"go"`
|
||||
Host string `json:"host"`
|
||||
@@ -144,6 +145,7 @@ func New(opts *Options) *Server {
|
||||
info := Info{
|
||||
ID: genID(),
|
||||
Version: VERSION,
|
||||
Proto: PROTO,
|
||||
GitCommit: gitCommit,
|
||||
GoVersion: runtime.Version(),
|
||||
Host: opts.Host,
|
||||
|
||||
Reference in New Issue
Block a user