Skip to content

Commit 91c0e92

Browse files
committed
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.
1 parent 1a9c752 commit 91c0e92

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cmd/loop/loopout.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ func loopOut(ctx *cli.Context) error {
5050
}
5151

5252
var destAddr string
53+
args = args.Tail()
5354
switch {
5455
case ctx.IsSet("addr"):
5556
destAddr = ctx.String("addr")

0 commit comments

Comments
 (0)