Skip to content

Commit

Permalink
Allow using address like raspberrypi.local
Browse files Browse the repository at this point in the history
Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
  • Loading branch information
afbjorklund committed Nov 22, 2023
1 parent beb0afb commit d52b0a2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/limayaml/validate.go
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,10 @@ func validateNetwork(y LimaYAML, warn bool) error {
}

func validateHost(field string, host string) error {
if net.ParseIP(host) == nil {
if net.ParseIP(host) != nil {
return nil
}
if _, err := net.LookupIP(host); err != nil {
return fmt.Errorf("field `%s` must be IP", field)
}
return nil
Expand Down

0 comments on commit d52b0a2

Please sign in to comment.