File tree 1 file changed +3
-10
lines changed
1 file changed +3
-10
lines changed Original file line number Diff line number Diff line change 1
1
package limayaml
2
2
3
3
import (
4
- "context"
5
4
"errors"
6
5
"fmt"
7
6
"net"
@@ -12,7 +11,6 @@ import (
12
11
"runtime"
13
12
"strings"
14
13
"unicode"
15
- "time"
16
14
17
15
"github.com/docker/go-units"
18
16
"github.com/lima-vm/lima/pkg/localpathutil"
@@ -476,16 +474,11 @@ func ValidateParamIsUsed(y *LimaYAML) error {
476
474
}
477
475
478
476
func lookupIP (host string ) error {
479
- var err error
480
477
if strings .HasSuffix (host , ".local" ) {
481
- var r net.Resolver
482
- const timeout = 500 * time .Millisecond // timeout for .local
483
- ctx , cancel := context .WithTimeout (context .TODO (), timeout )
484
- defer cancel ()
485
- _ , err = r .LookupIP (ctx , "ip" , host )
486
- } else {
487
- _ , err = net .LookupIP (host )
478
+ // allow offline or slow mDNS
479
+ return nil
488
480
}
481
+ _ , err := net .LookupIP (host )
489
482
return err
490
483
}
491
484
You can’t perform that action at this time.
0 commit comments