Make admin interface enabled by default.

pull/1581/head
Todd Persen 2015-02-11 16:33:21 -08:00
parent c9d6087fe1
commit 93201bd68c
2 changed files with 3 additions and 0 deletions

View File

@ -119,6 +119,8 @@ func NewConfig() *Config {
c.Data.Port = DefaultDataPort
c.Data.RetentionCheckEnabled = true
c.Data.RetentionCheckPeriod = Duration(10 * time.Minute)
c.Admin.Enabled = true
c.Admin.Port = 8083
// Detect hostname (or set to localhost).
if c.Hostname, _ = os.Hostname(); c.Hostname == "" {

View File

@ -70,6 +70,7 @@ func createCombinedNodeCluster(t *testing.T, testName string, nNodes, basePort i
c.Data.Dir = filepath.Join(tmpDataDir, strconv.Itoa(basePort))
c.Broker.Port = basePort
c.Data.Port = basePort
c.Admin.Enabled = false
b, s := main.Run(c, "", "x.x", os.Stderr)
if b == nil {