Skip to content

Commit 7e4fb62

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

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
@@ -452,7 +452,10 @@ func validateNetwork(y LimaYAML, warn bool) error {
452452
}
453453

454454
func validateHost(field, host string) error {
455-
if net.ParseIP(host) == nil {
455+
if net.ParseIP(host) != nil {
456+
return nil
457+
}
458+
if _, err := net.LookupIP(host); err != nil {
456459
return fmt.Errorf("field `%s` must be IP", field)
457460
}
458461
return nil

0 commit comments

Comments
 (0)