diff --git a/cmd/skywire-cli/commands/vpn/vvpn.go b/cmd/skywire-cli/commands/vpn/vvpn.go index 734284b61..393f3384a 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) }