no false alert (#1588)

This commit is contained in:
Alex Sharov 2021-03-23 11:15:54 +07:00 committed by GitHub
parent 4c82b15c36
commit 5cd91cb8ec
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1162,7 +1162,7 @@ func SetNodeConfig(ctx *cli.Context, cfg *node.Config) {
if ctx.GlobalIsSet(LightKDFFlag.Name) {
cfg.UseLightweightKDF = ctx.GlobalBool(LightKDFFlag.Name)
}
if ctx.GlobalIsSet(NoUSBFlag.Name) || cfg.NoUSB {
if ctx.GlobalIsSet(NoUSBFlag.Name) {
log.Warn("Option nousb is deprecated and USB is deactivated by default. Use --usb to enable")
}
if ctx.GlobalIsSet(USBFlag.Name) {