summaryrefslogtreecommitdiffhomepage
path: root/admin.go
diff options
context:
space:
mode:
authorMatthew Holt <[email protected]>2019-07-05 09:59:13 -0600
committerMatthew Holt <[email protected]>2019-07-05 09:59:13 -0600
commit9429c843c854c0a8d9f9e5710dd6903afabeefb3 (patch)
treead7c168144a268892d1819de03ccf983537371c3 /admin.go
parent6bcba91fbe1d11fa98dbaa75eeafcdce3921daf8 (diff)
downloadcaddy-9429c843c854c0a8d9f9e5710dd6903afabeefb3.tar.gz
caddy-9429c843c854c0a8d9f9e5710dd6903afabeefb3.zip
cmd: New reload command
Diffstat (limited to 'admin.go')
-rw-r--r--admin.go6
1 files changed, 5 insertions, 1 deletions
diff --git a/admin.go b/admin.go
index 11be4f230..f3337b0c9 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)