diff options
author | Francis Lavoie <lavofr@gmail.com> | 2022-07-20 20:14:33 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-20 18:14:33 -0600 |
commit | abad9bc256eea7353b9959d066f5b7ea64990a22 (patch) | |
tree | 3db64f80527d253b3e3fa6cac4a9522536ca3448 /modules/caddypki | |
parent | 8bdee04651d93a5a799f6816ceafaa7ac61fe26d (diff) |
cmd: Fix reload with stdin (#4900)
Diffstat (limited to 'modules/caddypki')
-rw-r--r-- | modules/caddypki/command.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddypki/command.go b/modules/caddypki/command.go index c26c19a..cb86c93 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) } |