Skip to content

Commit

Permalink
fix wrong condition
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpalide committed Oct 20, 2022
1 parent bdaaab7 commit dd2d52a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/skywire-cli/commands/vpn/vvpn.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
}
Expand Down

0 comments on commit dd2d52a

Please sign in to comment.