From 91c0e92c4a2f8eb687994e85e685a63498f7caa7 Mon Sep 17 00:00:00 2001 From: Olaoluwa Osuntokun Date: Wed, 20 Mar 2019 20:15:12 -0700 Subject: [PATCH] cmd/loop: fix bug in optional swep addr parsing In this commit we fix a recently introduce bug (when the addr kwarg was added) that caused all commands to fail with an error. The issue was we didn't advance the args linked list to the final element. --- cmd/loop/loopout.go | 1 + 1 file changed, 1 insertion(+) diff --git a/cmd/loop/loopout.go b/cmd/loop/loopout.go index 96f7488..2d17627 100644 --- a/cmd/loop/loopout.go +++ b/cmd/loop/loopout.go @@ -50,6 +50,7 @@ func loopOut(ctx *cli.Context) error { } var destAddr string + args = args.Tail() switch { case ctx.IsSet("addr"): destAddr = ctx.String("addr")