aboutsummaryrefslogtreecommitdiffhomepage
path: root/modules/caddypki
diff options
context:
space:
mode:
authorFrancis Lavoie <[email protected]>2022-07-20 20:14:33 -0400
committerGitHub <[email protected]>2022-07-20 18:14:33 -0600
commitabad9bc256eea7353b9959d066f5b7ea64990a22 (patch)
tree3db64f80527d253b3e3fa6cac4a9522536ca3448 /modules/caddypki
parent8bdee04651d93a5a799f6816ceafaa7ac61fe26d (diff)
downloadcaddy-abad9bc256eea7353b9959d066f5b7ea64990a22.tar.gz
caddy-abad9bc256eea7353b9959d066f5b7ea64990a22.zip
cmd: Fix reload with stdin (#4900)
Diffstat (limited to 'modules/caddypki')
-rw-r--r--modules/caddypki/command.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddypki/command.go b/modules/caddypki/command.go
index c26c19ad9..cb86c9379 100644
--- a/modules/caddypki/command.go
+++ b/modules/caddypki/command.go
@@ -113,7 +113,7 @@ func cmdTrust(fl caddycmd.Flags) (int, error) {
}
// Determine where we're sending the request to get the CA info
- adminAddr, err := caddycmd.DetermineAdminAPIAddress(addrFlag, configFlag, configAdapterFlag)
+ adminAddr, err := caddycmd.DetermineAdminAPIAddress(addrFlag, nil, configFlag, configAdapterFlag)
if err != nil {
return caddy.ExitCodeFailedStartup, fmt.Errorf("couldn't determine admin API address: %v", err)
}
@@ -182,7 +182,7 @@ func cmdUntrust(fl caddycmd.Flags) (int, error) {
}
// Determine where we're sending the request to get the CA info
- adminAddr, err := caddycmd.DetermineAdminAPIAddress(addrFlag, configFlag, configAdapterFlag)
+ adminAddr, err := caddycmd.DetermineAdminAPIAddress(addrFlag, nil, configFlag, configAdapterFlag)
if err != nil {
return caddy.ExitCodeFailedStartup, fmt.Errorf("couldn't determine admin API address: %v", err)
}