diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-22 19:10:29 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2019-05-22 19:10:29 -0600 |
commit | c24a3e389fc63a2cf3d51e0afd743047514ff1d5 (patch) | |
tree | 513bd1a72f49e3a3d4c460c8839685ed6be9b8c6 | |
parent | f976451d19aea6db42d08ff8cf6e760176f94acb (diff) |
Change admin listener to :1234 for now; output message when listening
-rw-r--r-- | cmd/run.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 {} } |