Skip to content

Commit 5624403

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

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
@@ -437,7 +437,10 @@ func ValidateParamIsUsed(y *LimaYAML) error {
437437
}
438438

439439
func validateHost(field, host string) error {
440-
if net.ParseIP(host) == nil {
440+
if net.ParseIP(host) != nil {
441+
return nil
442+
}
443+
if _, err := net.LookupIP(host); err != nil {
441444
return fmt.Errorf("field `%s` must be IP", field)
442445
}
443446
return nil

0 commit comments

Comments
 (0)