From c534b7ac3cc8f2356b8ffb038028e2b8d531beed Mon Sep 17 00:00:00 2001 From: Mohammed <79150699+mrpalide@users.noreply.github.com> Date: Thu, 18 May 2023 21:13:42 +0330 Subject: [PATCH] fix wrong index (#1564) --- cmd/skywire-cli/commands/vpn/vvpn.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/skywire-cli/commands/vpn/vvpn.go b/cmd/skywire-cli/commands/vpn/vvpn.go index 734284b614..393f3384a7 100644 --- a/cmd/skywire-cli/commands/vpn/vvpn.go +++ b/cmd/skywire-cli/commands/vpn/vvpn.go @@ -65,7 +65,7 @@ var startCmd = &cobra.Command{ err := pubkey.Set(pk) if err != nil { if len(args) > 0 { - err := pubkey.Set(args[1]) + err := pubkey.Set(args[0]) if err != nil { internal.PrintFatalError(cmd.Flags(), err) }