From 9429c843c854c0a8d9f9e5710dd6903afabeefb3 Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Fri, 5 Jul 2019 09:59:13 -0600 Subject: cmd: New reload command --- admin.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'admin.go') diff --git a/admin.go b/admin.go index 11be4f2..f3337b0 100644 --- a/admin.go +++ b/admin.go @@ -44,7 +44,7 @@ type AdminConfig struct { // DefaultAdminConfig is the default configuration // for the administration endpoint. var DefaultAdminConfig = &AdminConfig{ - Listen: "localhost:2019", + Listen: DefaultAdminListen, } // StartAdmin starts Caddy's administration endpoint, @@ -192,6 +192,10 @@ func Load(r io.Reader) error { return nil } +// DefaultAdminListen is the address for the admin +// listener, if none is specified at startup. +var DefaultAdminListen = "localhost:2019" + var bufPool = sync.Pool{ New: func() interface{} { return new(bytes.Buffer) -- cgit v1.2.3