From 21be6f2759c85362399f964c304db1bd820bfa28 Mon Sep 17 00:00:00 2001 From: alessio Date: Mon, 21 Nov 2016 23:03:19 +0100 Subject: [PATCH] fixed web server option in config file --- server/main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/main.go b/server/main.go index ee399e3..af50a67 100644 --- a/server/main.go +++ b/server/main.go @@ -2,6 +2,7 @@ package server import ( "encoding/json" + "fmt" "github.com/labstack/echo" "github.com/labstack/echo/middleware" c "github.com/tockins/realize/settings" @@ -92,6 +93,8 @@ func (s *Server) Start(p *cli.Context) (err error) { return err } } + } else { + s.Server.Enabled = false } return nil }