mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-30 07:35:51 +08:00
cmd: New reload command
This commit is contained in:
6
admin.go
6
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)
|
||||
|
Reference in New Issue
Block a user