Skip to content

Commit

Permalink
Validate before starting server
Browse files Browse the repository at this point in the history
  • Loading branch information
evenh committed Apr 26, 2019
1 parent 574cd68 commit 36b06a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ package cmd
import (
"errors"

"github.com/go-acme/lego/log"

"github.com/evenh/intercert/config"
"github.com/evenh/intercert/server"
"github.com/go-acme/lego/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
)
Expand Down Expand Up @@ -46,8 +47,7 @@ var serveCmd = &cobra.Command{
PrintErrorAndExit(errors.New("the ACME ToS must be agreed to"))
}

log.Infof("Listening on port %v", c.Port)

server.StartServer(&c)
log.Infof("Listening on port %v", c.Port)
},
}

0 comments on commit 36b06a1

Please sign in to comment.