Skip to content

Commit

Permalink
fix(server): fix typo in ip subcommand (#678)
Browse files Browse the repository at this point in the history
  • Loading branch information
phm07 committed Jan 17, 2024
1 parent d062965 commit c5e3f00
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cmd/server/ip.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ var IPCmd = base.Cmd{
}
if ipv6 {
if server.PublicNet.IPv6.IsUnspecified() {
return fmt.Errorf("server %s has not primary IPv6", idOrName)
return fmt.Errorf("server %s has no primary IPv6", idOrName)
}
cmd.Println(server.PublicNet.IPv6.IP.String() + "1")
} else {
if server.PublicNet.IPv4.IsUnspecified() {
return fmt.Errorf("server %s has not primary IPv4", idOrName)
return fmt.Errorf("server %s has no primary IPv4", idOrName)
}
cmd.Println(server.PublicNet.IPv4.IP.String())
}
Expand Down

0 comments on commit c5e3f00

Please sign in to comment.