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/coreos/go-semver/semver"
18
16
"github.com/docker/go-units"
@@ -506,16 +504,11 @@ func ValidateParamIsUsed(y *LimaYAML) error {
506
504
}
507
505
508
506
func lookupIP (host string ) error {
509
- var err error
510
507
if strings .HasSuffix (host , ".local" ) {
511
- var r net.Resolver
512
- const timeout = 500 * time .Millisecond // timeout for .local
513
- ctx , cancel := context .WithTimeout (context .TODO (), timeout )
514
- defer cancel ()
515
- _ , err = r .LookupIP (ctx , "ip" , host )
516
- } else {
517
- _ , err = net .LookupIP (host )
508
+ // allow offline or slow mDNS
509
+ return nil
518
510
}
511
+ _ , err := net .LookupIP (host )
519
512
return err
520
513
}
521
514
You can’t perform that action at this time.
0 commit comments