cmd/utils: make --authrpc.jwtsecret a DirectoryFlag (#25849)

Signed-off-by: Delweng <delweng@gmail.com>
This commit is contained in:
Delweng 2022-09-22 21:43:47 +08:00 committed by GitHub
parent 400ab0d94f
commit 6215b92523
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -631,7 +631,7 @@ var (
Value: strings.Join(node.DefaultConfig.AuthVirtualHosts, ","),
Category: flags.APICategory,
}
JWTSecretFlag = &cli.StringFlag{
JWTSecretFlag = &flags.DirectoryFlag{
Name: "authrpc.jwtsecret",
Usage: "Path to a JWT secret to use for authenticated RPC endpoints",
Category: flags.APICategory,