mirror of
https://github.com/caddyserver/caddy.git
synced 2025-11-09 01:31:11 +00:00
Make RegisterPlugin() more consistent, having name as first argument
This commit is contained in:
parent
9b4134b287
commit
d3860f95f5
23 changed files with 33 additions and 62 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue