0
Fork 0
mirror of https://github.com/caddyserver/caddy.git synced 2024-12-23 22:27:38 -05:00

Ensure a default root is always set in the configs

This commit is contained in:
Matthew Holt 2015-05-05 15:48:40 -06:00
parent 857b4f90d9
commit 21c26f48d0

View file

@ -38,6 +38,7 @@ func Load(filename string, input io.Reader) ([]server.Config, error) {
config := server.Config{
Host: sb.Host,
Port: sb.Port,
Root: Root,
Middleware: make(map[string][]middleware.Middleware),
ConfigFile: filename,
AppName: AppName,