From 0f0d0636a78384d6ace4e4f8ac44de22f3212eb5 Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Wed, 12 Apr 2017 02:10:20 +0200 Subject: [PATCH] cmd/utils: make --ipcdisable and --ipcpath mutually exclusive --- cmd/utils/flags.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index b4c7b88bde..34e319505b 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -585,6 +585,7 @@ func setWS(ctx *cli.Context, cfg *node.Config) { // setIPC creates an IPC path configuration from the set command line flags, // returning an empty string if IPC was explicitly disabled, or the set path. func setIPC(ctx *cli.Context, cfg *node.Config) { + checkExclusive(ctx, IPCDisabledFlag, IPCPathFlag) switch { case ctx.GlobalBool(IPCDisabledFlag.Name): cfg.IPCPath = ""