Make RegisterPlugin() more consistent, having name as first argument

This commit is contained in:
Matthew Holt 2016-06-06 15:31:03 -06:00
parent 9b4134b287
commit d3860f95f5
No known key found for this signature in database
GPG key ID: 0D97CC73664F4D03
23 changed files with 33 additions and 62 deletions

View file

@ -16,10 +16,7 @@ import (
)
func init() {
caddy.RegisterPlugin(caddy.Plugin{
Name: "tls",
Action: setupTLS,
})
caddy.RegisterPlugin("tls", caddy.Plugin{Action: setupTLS})
}
// setupTLS sets up the TLS configuration and installs certificates that