From c24a3e389fc63a2cf3d51e0afd743047514ff1d5 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Wed, 22 May 2019 19:10:29 -0600 Subject: Change admin listener to :1234 for now; output message when listening --- cmd/run.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cmd/run.go b/cmd/run.go index d19fb19..1663dfb 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -8,11 +8,14 @@ import ( // Main executes the main function of the caddy command. func Main() { - err := caddy2.StartAdmin("127.0.0.1:1234") + addr := ":1234" // TODO: for dev only + err := caddy2.StartAdmin(addr) if err != nil { log.Fatal(err) } defer caddy2.StopAdmin() + log.Println("Caddy 2 admin endpoint listening on", addr) + select {} } -- cgit v1.2.3