mirror of
https://github.com/caddyserver/caddy.git
synced 2024-11-27 02:33:48 +08:00
Ensure a default root is always set in the configs
This commit is contained in:
parent
857b4f90d9
commit
21c26f48d0
|
@ -38,6 +38,7 @@ func Load(filename string, input io.Reader) ([]server.Config, error) {
|
||||||
config := server.Config{
|
config := server.Config{
|
||||||
Host: sb.Host,
|
Host: sb.Host,
|
||||||
Port: sb.Port,
|
Port: sb.Port,
|
||||||
|
Root: Root,
|
||||||
Middleware: make(map[string][]middleware.Middleware),
|
Middleware: make(map[string][]middleware.Middleware),
|
||||||
ConfigFile: filename,
|
ConfigFile: filename,
|
||||||
AppName: AppName,
|
AppName: AppName,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user