@marcel91200 / caddy Mirror · read-only / commits / cd9e1660
Fork 0

Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS

Mirrored from https://github.com/Slazee/caddy.git

Synced Nov 11, 14:45 UTC

cmd: Pass configFile, not configFlag, for reload command (#7532)

* cmd: Pass configFile, not configFlag, for reload command This *should* fix #7528. * Remove debug log line --------- Co-authored-by: Francis Lavoie <lavofr@gmail.com>

Matt Holt committed Feb 27, 2026 at 15:24 UTC cd9e1660aa454e6536ad740c9d1aaecf3c3552ed
1 file changed +1 -1
cmd/commandfuncs.go
+1 -1
@@ -372,7 +372,7 @@ func cmdReload(fl Flags) (int, error) {
372 return caddy.ExitCodeFailedStartup, fmt.Errorf("no config file to load")
373 }
374
375 - adminAddr, err := DetermineAdminAPIAddress(addressFlag, config, configFlag, configAdapterFlag)
375 + adminAddr, err := DetermineAdminAPIAddress(addressFlag, config, configFile, configAdapterFlag)
376 if err != nil {
377 return caddy.ExitCodeFailedStartup, fmt.Errorf("couldn't determine admin API address: %v", err)
378 }