Skip to content

Commit 2e079a2

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

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
@@ -570,7 +570,10 @@ func ValidateParamIsUsed(y *LimaYAML) error {
570570
}
571571

572572
func validateHost(field, host string) error {
573-
if net.ParseIP(host) == nil {
573+
if net.ParseIP(host) != nil {
574+
return nil
575+
}
576+
if _, err := net.LookupIP(host); err != nil {
574577
return fmt.Errorf("field `%s` must be IP", field)
575578
}
576579
return nil

0 commit comments

Comments
 (0)