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"
@@ -11,7 +10,6 @@ import (
11
10
"regexp"
12
11
"runtime"
13
12
"strings"
14
- "time"
15
13
16
14
"github.com/docker/go-units"
17
15
"github.com/lima-vm/lima/pkg/localpathutil"
@@ -439,16 +437,11 @@ func ValidateParamIsUsed(y *LimaYAML) error {
439
437
}
440
438
441
439
func lookupIP (host string ) error {
442
- var err error
443
440
if strings .HasSuffix (host , ".local" ) {
444
- var r net.Resolver
445
- const timeout = 500 * time .Millisecond // timeout for .local
446
- ctx , cancel := context .WithTimeout (context .TODO (), timeout )
447
- defer cancel ()
448
- _ , err = r .LookupIP (ctx , "ip" , host )
449
- } else {
450
- _ , err = net .LookupIP (host )
441
+ // allow offline or slow mDNS
442
+ return nil
451
443
}
444
+ _ , err := net .LookupIP (host )
452
445
return err
453
446
}
454
447
You can’t perform that action at this time.
0 commit comments