From dd2d52aad166fcea405aa090d12c055a6c97dfe5 Mon Sep 17 00:00:00 2001 From: MohammadReza Palide Date: Thu, 20 Oct 2022 11:29:12 +0330 Subject: [PATCH] fix wrong condition --- 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 b12473c1a..33023312c 100644 --- a/cmd/skywire-cli/commands/vpn/vvpn.go +++ b/cmd/skywire-cli/commands/vpn/vvpn.go @@ -164,7 +164,7 @@ var vpnStartCmd = &cobra.Command{ internal.Catch(cmd.Flags(), w.Flush()) internal.PrintOutput(cmd.Flags(), "\nRunning!", fmt.Sprintln("\nRunning!")) ip, err := visor.GetIP() - if err != nil { + if err == nil { internal.PrintOutput(cmd.Flags(), fmt.Sprintf("\nYour current IP is %s!\n", ip), fmt.Sprintf("\nYour current IP is %s!\n", ip)) } }