Skip to content

Commit 2744e65

Browse files
committed
Allow using address like raspberrypi.local
Signed-off-by: Anders F Björklund <[email protected]>
1 parent cfe5bb2 commit 2744e65

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

pkg/limayaml/validate.go

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,10 @@ func validateNetwork(y LimaYAML, warn bool) error {
449449
}
450450

451451
func validateHost(field string, host string) error {
452-
if net.ParseIP(host) == nil {
452+
if net.ParseIP(host) != nil {
453+
return nil
454+
}
455+
if _, err := net.LookupIP(host); err != nil {
453456
return fmt.Errorf("field `%s` must be IP", field)
454457
}
455458
return nil

0 commit comments

Comments
 (0)