Skip to content

Commit

Permalink
cmd/loop: fix bug in optional swep addr parsing
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Roasbeef committed Mar 21, 2019
1 parent 1a9c752 commit 91c0e92
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cmd/loop/loopout.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 91c0e92

Please sign in to comment.